instance method
from
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
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"]
Parameters
-
defaultopt = nil
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/interface.rb, line 379
def from( default = nil )
addrs2specs(from_addrs(nil)) || default
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/interface.rb line 379
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Mail