[Tutor] problem with rejected mail smtplib

Kent Johnson kent37 at tds.net
Sun Jul 30 13:43:02 CEST 2006


Michael P. Reilly wrote:
> 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)
Actually server.sendmail allows a string to represent a single address. 
This was undocumented until recently but it does work.

Kent



More information about the Tutor mailing list