On Feb 17, 11:01 ¨Βν¬ ΝοθιΣιξδθχαξΌνοίν®®®ΐοξηθυ®γονχςοτεΊ > Max Payne wrote: > > On Feb 17, 3:00 am, Mohit Sindhwani <mo_m... / onghu.com> wrote: > > >> Also, if you're missing the date, you'll need to add that in. ¨Βθεγλ ου> >> the example on my page here:http://notepad.onghu.com/2007/3/26/sending-email-with-ruby > > > Thanks , putting it all in the message did the trick. Mohit thanks for > > the great example. Now I need to figure out how to CC. The > > send_message method takes a to and a from... > > Hi Max > > I've never tried CC, so I don't know. ¨Βυτιζ ωοδο ηειτπμεασε > post here for future reference - I'll also update the example on my page > after that. > > Cheers, > Mohit. > 2/18/2008 | 12:02 AM. I added a cc_mail var and an extra parameter for send_message and it worked although I didn't completely test. I received a [You were Cc'd] message on my blackberry so I'm thrilled. If I had more cc's then I would have used an array of email addresses. cc_mail = 'to / ccemail.com' msg = <<EOF From: #{from_name}<#{from_mail}> To: #{to_name}<#{to_mail}> Cc: #{cc_mail} Subject: E&D upload complete. #{body} Powered By Ruby EOF smtp = Net::SMTP.start(smtp_host, smtp_port, smtp_domain, smtp_user, smtp_password, :login) { |smtp| smtp.send_message(msg,smtp_user,to_mail,cc_mail) }