How to set Devise sender name for email

If you need to do this for devise, heroku and mandrill: and you're setting the email address as an environment variable you'll need to do it like so (I found out the hard way when the above email format above broke our sign up process, let my pain be your gain :)

Label:  Value:
EMAIL   Example.com <[email protected]>

No ' or " required.


This is it:

config.mailer_sender = '"Example.com" <[email protected]>'

You can also use escaped characters like this:

config.mailer_sender = "\"Support Desk\" <[email protected]>"