From 32bd8f600b827794750da13bc2392799bc8cf243 Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Wed, 18 Feb 2015 12:44:50 +0100 Subject: [PATCH] Use FoodsoftConfig[:email_sender] for sender address Not every email provider allows sending messages from an unauthorized server. --- plugins/messages/app/mailers/messages_mailer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/messages/app/mailers/messages_mailer.rb b/plugins/messages/app/mailers/messages_mailer.rb index 5a73a600..f3003686 100644 --- a/plugins/messages/app/mailers/messages_mailer.rb +++ b/plugins/messages/app/mailers/messages_mailer.rb @@ -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