I want Devise to send emails from specified address, not from ActionMailer default. Is it posible?
Our out-of-the box Devise setup is now working with Rails 7. Once again, if you'd like to refer to any of the code for this setup, or use the template wholesale for a new app, the code is available on GitHub, and you may also use it as a template repo to kick off your own Rails 7 devise projects.
config.mailer_sender
property in config/devise/devise.rb
allows you to specify that. If you don't have config/devise/devise.rb
, run devise:install
generator.
In Rails 4, set config.mailer_sender
in config/initializers/devise.rb
like this:
config.mailer_sender = 'Some One <[email protected]>'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With