views:

78

answers:

1

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
Thank you, macek, that was exactly my question. Anyhow... do you know since what Rails version this works?
Erik Escobedo