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 => "Adman1965@gmai.com"
=> #<Mail::Message:2187944080, Multipart: false, Headers: <Bcc: Adman1965@gmai.com>>
>> m.bcc
=> ["Adman1965@gmai.com"]
>> m.to_s
=> "Date: Sat, 27 Mar 2010 02:18:00 -0700\r\nMessage-ID: <4badcd4819ef0_3fe6800b81ac13570@Mini.local.mail>\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