Forum: Ruby SMTP problem sending to multiple recipients

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
9e6d05909dc733af570faadce1392e67?d=identicon&s=25 Michael Satterwhite (msatterwhite)
on 2009-04-08 19:56
Please consider the following code snippet:

msg = <<EOS
From: <anaddress>
To: <anotheraddress>
Subject: A Test Message

This is a test message.

Net::SMTP.start(<servername>, 26, <server>, <username>, <passwd>,
:plain) do |smtp|
   smtp.send_message(msg, <fromaddress>, ['',

If I execute this, only one of the two recipients will get a copy of the
message. No errors are seen, but the second address just gets discarded.
I'm pretty sure it's not the server playing games as a similar action in
the python equivalent works cleanly.

Could someone offer some help?
Thanks much
This topic is locked and can not be replied to.