Merge pull request #349 from foodcoop1040/reply_to

Use FoodsoftConfig[:email_sender] for sender address
This commit is contained in:
wvengen 2015-02-18 22:58:40 +01:00
commit bd31092a65

View file

@ -6,6 +6,7 @@ class MessagesMailer < Mailer
mail subject: "[#{FoodsoftConfig[:name]}] " + message.subject, mail subject: "[#{FoodsoftConfig[:name]}] " + message.subject,
to: recipient.email, to: recipient.email,
from: "#{show_user(message.sender)} <#{message.sender.email}>" from: "#{show_user(message.sender)} via Foodsoft <#{FoodsoftConfig[:email_sender]}>",
reply_to: "#{show_user(message.sender)} <#{message.sender.email}>"
end end
end end