Project

General

Profile

Actions

Defect #11376

closed

Asynchronous email notifications aren't sent

Added by Etienne Massip almost 12 years ago. Updated over 11 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Since upgrade to 2.x and keeping the SMTP settings untouched (using :async_smtp delivery method), mails are simply not received anymore.

After digging around, it seems that the settings never make their way to the Net::SMTP instance and that mail is attempted to be sent with default options (to localhost:25 with no auth).

According to RoR 3.2.6 code, settings are supposed to be fetched from mailer model using a delivery method-specific getter (e.g. async_smtp_settings).

And indeed, adding the following lines in source:/tags/2.0.3/app/models/mailer.rb is enough to have the notifications sent back again:

class << self
  alias_attribute :async_smtp_settings, :smtp_settings
  alias_attribute :async_sendmail_settings, :sendmail_settings
end

Aside note: there is no error in log even at development level, why is that?


Files

async_parameter.patch (1.38 KB) async_parameter.patch Etienne Massip, 2012-07-16 21:03

Related issues

Related to Redmine - Defect #12115: Sending Email redmine 2.1.2Closed

Actions
Has duplicate Redmine - Defect #11634: Asynchronous delivery not workClosed

Actions
Actions

Also available in: Atom PDF