Allow User objects in Bcc, Cc Reply-To, Sencer and To mail fields

This commit is contained in:
Patrick Gansterer 2017-08-18 00:21:52 +02:00
parent 04bf994c9a
commit b5c9634315
2 changed files with 14 additions and 8 deletions

View file

@ -12,7 +12,7 @@ class MessagesMailer < Mailer
end
mail subject: message.subject,
to: recipient.email,
to: recipient,
from: "#{show_user(message.sender)} via #{I18n.t('layouts.foodsoft')} <#{FoodsoftConfig[:email_sender]}>",
reply_to: reply_to
end