Reputation: 2563
I am using devise
for authentication in Rails project . and on signup
it sends an email . The recipient watches '[email protected]'
in From
tab of email account. i want to show only username of sender like 'MyAppName'
in From
tab of email account when user receives email . How can i achieve that .
Upvotes: 0
Views: 77
Reputation: 2950
In the file config/initializers/devise.rb
, you can edit the attribute config.mailer_send
to include the name. It would look something like this:
config.mailer_sender = 'Alex Santos <[email protected]>'
Upvotes: 1