Help with SMTP
Oleg Broytmann
phd at phd.russ.ru
Thu Nov 25 06:17:28 EST 1999
On Wed, 24 Nov 1999, Glenn Kidd wrote:
> everyhting looks in order but the website reports a "500 Internal Server
> Error". When I look at the server log I get the following description of
> the error:
>
>
> [Wed Nov 24 13:23:30 1999] [error] [client 128.186.86.106] Premature end of
> script headers: /home/httpd/cgi-bin/mail.py
Your script must return something to the server - either text or
redirect.
print "Content-Type: text/html"
print
print "<HTML>...and all HTML stuff...<BODY>The message was successfully sent</BODY></HTML>"
Oleg.
----
Oleg Broytmann Foundation for Effective Policies phd at phd.russ.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list