# SMTP problem sending to multiple recipients

**URL:** <https://www.ruby-forum.com/t/smtp-problem-sending-to-multiple-recipients/165067>\
**Category:** Ruby\
**Created:** [April 8, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/smtp-problem-sending-to-multiple-recipients/165067 "2009-04-08T19:56:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [April 8, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/smtp-problem-sending-to-multiple-recipients/165067/1 "2009-04-08T19:56:35Z")

</div>

Please consider the following code snippet:

msg = \<\<EOS  
From:   
To:   
Subject: A Test Message

This is a test message.  
EOS

Net::SMTP.start(, 26, , , ,  
:plain) do |smtp|  
smtp.send\_message(msg, , [‘removed\_email\_address@domain.invalid’,  
‘removed\_email\_address@domain.invalid’])  
end

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  
—Michael
