Actions
Defect #11376
closedAsynchronous email notifications aren't sent
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
Related issues
Actions