help with sending mail in Program

Kent Johnson kent37 at tds.net
Thu Jun 9 08:33:20 EDT 2005


Kent Johnson wrote:
> Tim Roberts wrote:
>> Not exactly like this, you didn't.  The list of destination addresses in
>> SMTP.sendmail must be a sequence, not a string:
> 
> Yes, exactly like that. This is a working module, the only thing I 
> changed to post it was the email address and the name of the SMTP 
> server. SMTP.sendmail() allows a single string as a to address.
> 
>  From the comment in smtplib.py:
>            - to_addrs     : A list of addresses to send this mail to.  A 
> bare
>                             string will be treated as a list with 1 
> address.

I submitted this as a doc bug.

Kent



More information about the Python-list mailing list