Project

General

Profile

Actions

Defect #22914

closed

Notification mails not send when editing a ticket

Added by Carsten Schurig over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Email notifications
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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).

Actions #1

Updated by Carsten Schurig over 8 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...

Actions #2

Updated by Carsten Schurig over 8 years ago

  • Status changed from New to Resolved

Ok, megafail, the problem was the plugin redmine_mentions!

Actions #3

Updated by Toshi MARUYAMA over 8 years ago

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

Actions #4

Updated by Toshi MARUYAMA over 8 years ago

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

Also available in: Atom PDF