Use FoodsoftConfig[:email_sender] for sender address
Not every email provider allows sending messages from an unauthorized server.
This commit is contained in:
parent
65c7673a41
commit
32bd8f600b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue