SMTP problem sending to multiple recipients

  • Thread starter Michael Satterwhite
  • Start date
M

Michael Satterwhite

Please consider the following code snippet:

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

This is a test message.
EOS

Net::SMTP.start(<servername>, 26, <server>, <username>, <passwd>,
:plain) do |smtp|
smtp.send_message(msg, <fromaddress>, ['(e-mail address removed)',
'(e-mail address removed)'])
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top