如何设置设计邮件发件人名称? [英] How to set devise mails sender name?
问题描述
我正在使用rails dev gem。 Devise将确认电子邮件发送给新用户。
I am using rails devise gem. Devise sends cofirmation email to new users. Actionmailer is configured to use my gmail account to send emails.
电子邮件是由发件人发送的: no-reply@myapp.com,这是我的 actionmailer 全局用户名配置。
The email is sent by sender: "no-reply@myapp.com" which is my actionmailer global username configuration.
我想设置发件人以包括我的名字 Mahmoud Khaled no-reply@myapp.com
I want to set sender to include my name "Mahmoud Khaled no-reply@myapp.com"
当然,我不能将actionmailer用户名配置更新为包含名称,因为它只能是GMAIL用户名。
And for sure I can't update actionmailer username configration to include name because it should be only GMAIL username.
任何帮助我如何从参数设置devise?
Any help how can i set devise from parameter?
推荐答案
编辑您的 config / initializers / devise .rb
文件-非常接近顶部 config.mailer_sender
edit your config/initializers/devise.rb
file - it's pretty near the top, config.mailer_sender
这篇关于如何设置设计邮件发件人名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!