On 9月29日, 下午2时53分, Lawrence D'Oliveiro <[EMAIL PROTECTED]
central.gen.new_zealand> wrote:
> In message
> <[EMAIL PROTECTED]>, zxo102
> wrote:
>
> > SMTPServerDisconnected: Connection unexpectedly closed
>
> Does the SMTP server on localhost mention anything about the connection
> attempt in its log?
>
> If you telnet/netcat to port 25 on localhost, does anything interesting
> happen?

Thanks for your mentioning of the SMTP server on localhost. I did not
install that. After I install a free smtp server downloaded from
http://www.softstack.com/freesmtp.html,
and run the following python script again, everything is fine now.

import smtplib
server = smtplib.SMTP('localhost')
...

Thanks for your message.

ouyang


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to