smtplib data error

Peter Hansen peter at engcorp.com
Tue May 25 00:49:00 EDT 2004


yazzoo wrote:
>>> Traceback (most recent call last): File "test-py.cgi", line 790, in ?
>>> sendemail(EmailFrom, EmailTo, emsg) File "test-py.cgi", line 20, in
>>> sendemail failed = server.sendmail(EmailFrom, EmailTo, emsg) File
>>> "/usr/lib/python2.2/smtplib.py", line 685, in sendmail raise
>>> SMTPDataError(code, resp) smtplib.SMTPDataError: (550, 'Administrative
>>> prohibition')
>>
> The traceback above though seems to suggest that smtplib uses sendmail

No it doesn't.  Rather it suggests there is a method on the
server object called sendmail() and that it is raising the
exception shown.  You can check the source: smtplib.py is
right there on your hard drive.

-Peter



More information about the Python-list mailing list