problem with smtplib.sendmail
Carey Evans
c.evans at clear.net.nz
Mon Jul 19 05:15:40 EDT 1999
More information about the Python-list mailing list
Mon Jul 19 05:15:40 EDT 1999
- Previous message (by thread): IDLE Keyboard Mappings
- Next message (by thread): problem with smtplib.sendmail
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
kevinsl <kevinsl at yahoo.com> writes: > fromaddr='test at test.com' > toaddr='list-subscribe at test.com' > msg='' > mailserver=smtplib.SMTP('localhost') > mailserver.sendmail(fromaddr,toaddr,msg) #error occurs here > mailserver.quit() > > localhost is running qmail 1.03. qmail is a little more picky than some other mailers, and an empty message is *not* a valid RFC822 message. Try adding a minimum number of headers, e.g., msg='To: %s\n\n' % toaddr [...] Actually, that's not a valid RFC822 message either, but I think qmail will accept it... -- Carey Evans http://home.clear.net.nz/pages/c.evans/ print [<>]->[rand$.]
- Previous message (by thread): IDLE Keyboard Mappings
- Next message (by thread): problem with smtplib.sendmail
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list