Hi all,

I'm a little bit confused with things ... hope someone can help me
out.

I'm trying to do something very simple.

1. Create an email using Tmail
2. Then put cc, bcc
3. Send out using Net::SMTP

Problem is that it is not Cc-ing or Bcc-ing at all. Can someone look
at this and let me know what's happening
I'm running this from the command line via script/runner

require 'tmail'
require 'net/smtp'

mail = TMail::Mail.new
mail.cc = ['[email protected]']
mail.to = ['[email protected]']
mail.subject = "Hey"
mail.body = "Somehow this is not cc-ing at all!!"
Net::SMTP.start('mail.mydomainname.com', 25) do |smtp|
  smtp.send_mail(mail.to_s,
'[email protected]',[email protected]')
end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to