email questions

Carsten Haese carsten at uniqsys.com
Wed Feb 8 12:47:26 EST 2006


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.





More information about the Python-list mailing list