Search code examples
ruby-on-railsrubyruby-on-rails-3devise

How to set Devise sender name for email


Although this thread doesn't say much, I figured you set the sender name in the Devise intializer like this:

app/config/initializers/devise.rb

Devise.setup do |config|
  config.mailer_sender = "'MySite' <no-reply@mysite.com>"
end

But this didn't work for me.

Does anyone know the correct way to do this?


Solution

  • This is it:

    config.mailer_sender = '"Example.com" <your@site.com>'