Skip to content

Instantly share code, notes, and snippets.

@braindeaf
Created March 18, 2009 13:52
Show Gist options
  • Save braindeaf/81128 to your computer and use it in GitHub Desktop.
Save braindeaf/81128 to your computer and use it in GitHub Desktop.
>> t = TMail::Mail.new
=> #<TMail::Mail port=#<TMail::StringPort:id=0x3ff92369be30> bodyport=nil>
>> t.to = "RobL <[email protected]>"
=> "RobL <[email protected]>"
>> t.to
=> ["[email protected]"]
--
>> t.to_addrs
=> [#<TMail::Address [email protected]>
>> t.to_addrs.first.to_s
=> "RobL <[email protected]>"
>> t['to'].first.to_s
=> "RobL <[email protected]>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment