パスワードの回復中に「from:」アドレスを、smtp サーバーへのログインに使用する電子メール以外のものに変更する方法はありますか?
設定方法は次のとおりです。
app/config/environments/development.rb
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => 'domain.com',
:user_name => 'USERNAME@domain.com',
:password => 'PASSWORD',
:authentication => :plain,
:enable_starttls_auto => true
}
app/initializers/Devise.rb
config.mailer_sender = 'no-reply@domain.com'
パスワード再設定の電子メールを受信したときの「from:」アドレスは USERNAME@domain.com で、返信を押すと no-reply@domain に送信するように設定されています。「from:」アドレスも no-reply@domain.com に変更したいのですが、可能であれば、Google アプリで設定した配布グループの 1 つに変更したいと思います (認証する方法はありますか?グループ電子メールを使用していますか?)。何か案は?