Defect #22914

Notification mails not send when editing a ticket

Added by Carsten Schurig almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:
Priority:LowDue date:
Assignee:-% Done:

0%

Category:Email notifications
Target version:-
Resolution:Invalid Affected version:3.2.2

Description

Notification mails are not send when editing a ticket!

Mails are send on

  • test email
  • creating a ticket
  • creating a news entry
  • commenting a news entry

I turned on email debug output and when editing a ticket, redmine doesn't even try to send an email (at least there's no output in the log).

I'm currently on 3.2.2 and I think this started after upgrading from 2.6.something (to 3.2).

History

#1 Updated by Carsten Schurig almost 5 years ago

Some debugging:

In app/models/journal.rb I changed:

  def send_notification
    logger.error("NOTIFICATION JOURNAL")
    if notify? && (Setting.notified_events.include?('issue_updated') ||
        (Setting.notified_events.include?('issue_note_added') && notes.present?) ||
        (Setting.notified_events.include?('issue_status_updated') && new_status.present?) ||
        (Setting.notified_events.include?('issue_assigned_to_updated') && detail_for_attribute('assigned_to_id').present?) ||
        (Setting.notified_events.include?('issue_priority_updated') && new_value_for('priority_id').present?)
      )
      Mailer.deliver_issue_edit(self)
    end
  end

and the expected output is never shown in the log file, thus I assume, send_notification isn't called at all. BTW I did the same in issue.rb and on ticket creation I can see the log entry...

#2 Updated by Carsten Schurig almost 5 years ago

  • Status changed from New to Resolved

Ok, megafail, the problem was the plugin redmine_mentions!

#3 Updated by Toshi MARUYAMA almost 5 years ago

Please see submissions and try without plugins if you use plugins.

#4 Updated by Toshi MARUYAMA almost 5 years ago

  • Status changed from Resolved to Closed
  • Priority changed from Urgent to Low
  • Resolution set to Invalid

Also available in: Atom PDF