help with sending mail in Program
kent37 at tds.net
Thu Jun 9 14:33:20 CEST 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
> string will be treated as a list with 1
I submitted this as a doc bug.
More information about the Python-list