开发者

How to set devise mails sender name?

开发者 https://www.devze.com 2023-04-11 18:16 出处:网络
I am using rails devise gem. Devise sends cofirmation email to new users. Actionmailer is configured to use my gmail account to send emails.

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)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号