From: Joseph Clark Date: 2010-10-14T05:24:21+09:00 Subject: net/smtp Multiple Email recipients Issue I am having an interesting issue. I just recently modified a script from sending to a single address to multiple. The emails are sent, but when you look at the To field in the email clients it is all messed up. For instance when I attempt a reply to all it only thinks there is one address that is a combination of the two I sent to. require 'net/smtp' toEmail = Array.new toEmail << "1NAME \" toEmail << "2NAME \" fromEmail = "ME@MYSERVER.com" fromEmailAlias = "MEMEME" emailSubject = "Subject" message = < To: #{toEmail} MIME-Version: 1.0 Content-type: text/html Subject: #{emailSubject} Email test MESSAGE_END Net::SMTP.start('smtp.server.com', 25, 'server.com', 'username', 'password', :plain) do |smtp| smtp.send_message message, fromEmail, toEmail end -- Posted via http://www.ruby-forum.com/.