smtplib / solaris (newbie problem?)

chuck at jazzemail.com chuck at jazzemail.com
Fri Mar 11 11:17:16 EST 2005


I've good luck with this on a Linux system (foolproof), and now
I'm trying to get the same thing to run on a Solaris box.
pythonpath, or env or..?

Any help much appreciated.  Thanks

Chuck


Python 2.3.2 (#1, Oct 17 2003, 19:06:15) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>> import smtplib
>>>
>>>
>>> host="localhost"
>>> server = smtplib.SMTP(host)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.3/smtplib.py", line 240, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/local/lib/python2.3/smtplib.py", line 302, in connect
    raise socket.error, msg
socket.error: (146, 'Connection refused')
>>>




More information about the Python-list mailing list