From: Joseph Clark Date: 2010-10-14T10:28:07+09:00 Subject: Re: net/smtp Multiple Email recipients Issue I figured it out on my end. Below is what I had to do to get the To: field to work. You basically put each individual in a sperate To: Line. For example To: John To: Rob I still send the array to to net.smtp send_message, but in the message I scripted the above. I did notice you need to make sure there is no empty line between the last To: and MIME in the version below. require 'net/smtp' toEmail = Array.new toEmail << "John \" toEmail << "Rob \" rcptList = "" x = 0 while x < toEmail.length rcptList << "To: #{toEmail[x]}" x += 1 if x < toEmail.length rcptList << "\n" end end fromEmail = "ruby@nonexistant.com" fromEmailAlias = "Ruby Emailing" emailSubject = "Tada" message = < #{rcptList} MIME-Version: 1.0 Content-type: text/html Subject: #{emailSubject} yoyoyo MESSAGE_END Net::SMTP.start('smtp.somewhereqwert.com', 25, 'somewhereqwert.com', 'username', 'password', :plain) do |smtp| smtp.send_message message, fromEmail, toEmail end -- Posted via http://www.ruby-forum.com/.