Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
SMTP problem sending to multiple recipients
Michael Satterwhite
4/8/2009 5:57:00 PM
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>, ['to1@server.com',
'to2@server.com'])
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
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
SMTP problem sending to multiple recipients
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password