instance method
sender=
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
sender=( str )
Destructively sets the “Sender:” field to the passed string (which should be a valid email address)
Example:
mail = TMail::Mail.new mail.sender = "mikel@abc.com" mail.sender #=> "mikel@abc.org" mail['sender'].to_s #=> "mikel@abc.com"
Parameters
-
strreq
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/interface.rb, line 532
def sender=( str )
set_string_attr 'Sender', str
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/interface.rb line 532
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Mail