Oh, right... sorry... i didn't know i could do it like that. I was looping thru them
for address in addresses:
    server.sendmail(from,address,message)

i did not mention that in the OP.

-shawn


On 7/30/06, Michael P. Reilly <[EMAIL PROTECTED]> wrote:
On 7/29/06, shawn bright <[EMAIL PROTECTED] > wrote:
Hello there,
i have a customer list, each with a number of email address that we send notifications to via text message.
the problem is, there are a number of providers ( just two ) that reject our messages.
the script goes a little something like this :

Address = '[EMAIL PROTECTED]'
From = ' [EMAIL PROTECTED]'
message = 'From: [EMAIL PROTECTED]: %s\r\nSubject: %s\r\n\r\n%s' % (Address,'alert',message)
server.sendmail(From, Address, message)

most of the time it goes thru ok. but only some providers have a problem. However, those same providers get messages if i send them thru Evolution.

any ideas of what to check out?

The second argument to SMTP.sendmail is supposed to be a sequence.  You are sending a sequence (a string), so you do not get a complaint, but it is not the sequence you want.  Try this:


server.sendmail(From, [Address], message)

  -Arcege

--
There's so many different worlds,
So many different suns.
And we have just one world,
But we live in different ones.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to