Seems I'm still having issues with syntax. From what I can tell from my mail client, my outgoing mail server name is either mail.<ispname>.net or mail.<ispname>.net:<myUsername>@<myDomain>.com
The former yields the same socket error on connect() that I reported earlier. The latter yields a "nonnumeric port" error upon instantiation. Instantiating with the port number, s = smtplib.SMTP("mail.<ispname>.net:<myUsername>@<myDomain>.com", portNum) yields the following error: socket.gaierror: (7, 'No address associated with nodename') Suggestions? Thanks again Scott On Feb 8, 2006, at 9:47 AM, Carsten Haese wrote: > On Wed, 2006-02-08 at 12:34, Scott Frankel wrote: >> I'm looking for a way to send a simple, plain text email message >> using Python. My initial attempts are failing with the following >> error: >> >> socket.error: (61, 'Connection refused') >> >> Does this imply that I do not have the machine's smtp server >> running? > > Yes. > >> (I don't; and I'd like to avoid setting it up.) > > You don't have to set up an smtp server to use smtplib. You should be > able to use your ISP's outgoing mail server, as in > > s = smtplib.SMTP("<ISP's mail server name goes here>") > > HTH, > > Carsten. > > > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list