How to set devise mails sender name?
I am using rails devise gem. Devise sends cofirmation email to new users. Actionmailer is configured to use my gmail account to send emails.
The email is sent by sender: "no-reply@myapp.com" which is my actionmailer global username configuration.
I want to set sender to include my name "Mahmoud Khaled no-reply@开发者_运维问答myapp.com"
And for sure I can't update actionmailer username configration to include name because it should be only GMAIL username.
Any help how can i set devise from parameter?
edit your config/initializers/devise.rb
file - it's pretty near the top, config.mailer_sender
If you are using stmp of gmail, you cannot change the address of sender.
Google prohibited changing the address of sender.
For me this one Mahmoud Khaled no-reply@myapp.com
is working, by emails go directly to spam folder (gmail,yahoo,hotmail)
精彩评论