Skip to content

Instantly share code, notes, and snippets.

@ahawkins
Created March 27, 2010 09:26
Show Gist options
  • Save ahawkins/345865 to your computer and use it in GitHub Desktop.
Save ahawkins/345865 to your computer and use it in GitHub Desktop.
>> m = Mail.new :bcc => "[email protected]"
=> #<Mail::Message:2187944080, Multipart: false, Headers: <Bcc: [email protected]>>
>> m.bcc
=> ["[email protected]"]
>> m.to_s
=> "Date: Sat, 27 Mar 2010 02:18:00 -0700\r\nMessage-ID: <[email protected]>\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n\tcharset=\"US-ASCII\";\r\nContent-Transfer-Encoding: 7bit\r\n\r\n"
>> a = Mail.new(to_s)
=> #<Mail::Message:2187861660, Multipart: false, Headers: <main: >>
>> a.bcc
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment