Open
Description
Hello,
I am trying to do the following so that the mail header To
field contains a user's name as well as email address.
class ApplicationDeviseMailer < Devise::Mailer
default to: -> { computed_to }
private
def computed_to
ApplicationMailer.email_address_with_name(resource.email, resource.name)
end
end
However, there is not an option to transform the To
field (only From
and Reply-To
):
devise/lib/devise/mailers/helpers.rb
Lines 31 to 48 in fec67f9
Metadata
Assignees
Labels
No labels
Activity