[Pythonmac-SIG] SMTP from a Mac

Just van Rossum just@letterror.com
Mon, 28 Sep 1998 12:21:54 +0200


At 11:38 AM +0100 9/28/98, Tasselli Marco wrote:
>Hi,
>
>I've seen that in the 1.5.1 distribution of Python for the Mac, both the
>rfc822 and the smtp libs are present.
>
>I tried a test script for simple mail sending from a Mac but invariably get
>the message "socket: host not found" as a result of the command:
>server = smtplib.SMTP('myhost').
>
>is there any problem using smtp functionality from a mac?

You should fill in a valid smtp server for 'myhost', like
'smtp.myprovider.com'.
I've used smtplib often, without any problems.

Just