I want to show a pretty name in the e-mail clients
+1
A:
This should do the trick!
class UserMailer < ActionMailer::Base
def welcome_email(user)
recipients user.email
# PRETTY NAMES
from "Prettiest Pony <[email protected]>"
subject "Welcome to My Awesome Site"
sent_on Time.now
body {:user => user, :url => "http://example.com/login"}
end
end
See ActionMailer basics for more information
macek
2010-04-30 19:47:59
Thank you, macek, that was exactly my question. Anyhow... do you know since what Rails version this works?
Erik Escobedo
2010-05-03 13:46:45