From: ts Date: 2001-08-20T21:39:12+09:00 Subject: [ruby-talk:20020] Re: Anyone know how to send a BCC e-mail in Ruby? >>>>> "C" == Carl Youngblood writes: C> I'm trying to send a BCC email in Ruby like this: put the address in #ready() C> require 'net/smtp' C> smtp = Net::SMTP.new('mail.csolutions.net') C> smtp.start C> smtp.ready('carlyoungblood@email.com', 'carlyoungblood@bigfoot.com') do C> |a| smtp.ready('carlyoungblood@email.com', 'carlyoungblood@bigfoot.com', 'cyoungblood@csolutions.net') do C> a.write "To: Carl Youngblood \r\n" C> a.write "From: Carl Youngblood \r\n" C> a.write "BCC: Carl Youngblood \r\n" Don't put this field, otherwise this is not a Bcc :-) C> a.write "Subject: Testing\r\n" C> a.write "\r\n" C> a.write "This is a test" C> end Guy Decoux