public Method

Mail.from( default = nil )

Returns who the email is from as an Array of email address strings instead to an Array of TMail::Address objects which is what Mail#from_addrs returns

Example:

mail = TMail::Mail.new
mail.from = "Mikel <mikel@me.org>, another Mikel <mikel@you.org>"
mail.from #=>  ["mikel@me.org", "mikel@you.org"]

Source Code

# File action_mailer/vendor/tmail-1.2.2/tmail/interface.rb, line 379
def from( default = nil )
  addrs2specs(from_addrs(nil)) || default
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.