Do not set :sender and :errors_to when sending mails
:sender matches :from in all relevant cases, while :errors_to is an invalid (and very very outdated) option.
This commit is contained in:
parent
43c1833cd7
commit
0785eb2f22
1 changed files with 1 additions and 5 deletions
|
@ -9,9 +9,7 @@ class Mailer < ActionMailer::Base
|
||||||
|
|
||||||
layout 'email' # Use views/layouts/email.txt.erb
|
layout 'email' # Use views/layouts/email.txt.erb
|
||||||
|
|
||||||
default from: "Foodsoft <#{FoodsoftConfig[:email_sender]}>",
|
default from: "Foodsoft <#{FoodsoftConfig[:email_sender]}>"
|
||||||
sender: FoodsoftConfig[:email_sender],
|
|
||||||
errors_to: FoodsoftConfig[:email_sender]
|
|
||||||
|
|
||||||
# Sends an email with instructions on how to reset the password.
|
# Sends an email with instructions on how to reset the password.
|
||||||
# Assumes user.setResetPasswordToken has been successfully called already.
|
# Assumes user.setResetPasswordToken has been successfully called already.
|
||||||
|
@ -65,8 +63,6 @@ class Mailer < ActionMailer::Base
|
||||||
|
|
||||||
mail :to => FoodsoftConfig[:notification]["error_recipients"],
|
mail :to => FoodsoftConfig[:notification]["error_recipients"],
|
||||||
:from => "#{show_user user} <#{user.email}>",
|
:from => "#{show_user user} <#{user.email}>",
|
||||||
:sender => FoodsoftConfig[:notification]["sender_address"],
|
|
||||||
:errors_to => FoodsoftConfig[:notification]["sender_address"],
|
|
||||||
:subject => "[#{FoodsoftConfig[:name]}] " + I18n.t('mailer.feedback.subject', :email => user.email)
|
:subject => "[#{FoodsoftConfig[:name]}] " + I18n.t('mailer.feedback.subject', :email => user.email)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue