[Pythonmac-SIG] problems with smtplib?
chris mann
cmann@pobox.com
Thu, 21 Oct 1999 15:02:12 -0400
I'm having problems with the smtplib module on Mac.
if I run the following code on windows or linux it works fine, but fails on
mac:
import smtplib
s = smtplib.SMTP('smtp.myhost.com')
s.helo()
i get the following error:
Traceback (innermost last):
File "<input>", line 1, in ?
File "Dev:Scripting:Python 1.5.2c1:Lib:smtplib.py", line 290, in helo
name=socket.gethostbyaddr(socket.gethostname())[0]
error: host not found
any ideas why this is only failing on Mac?
thanks
-chris