Use FoodsoftConfig[:email_sender] for sender address

Not every email provider allows sending messages from an unauthorized server.
This commit is contained in:
Patrick Gansterer 2015-02-18 12:44:50 +01:00
parent 65c7673a41
commit 32bd8f600b

View file

@ -6,6 +6,7 @@ class MessagesMailer < Mailer
mail subject: "[#{FoodsoftConfig[:name]}] " + message.subject,
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