[Tutor] sending mails from python

2006-10-21 Thread euoar
I'm trying to learn how to send e-mails with python. But I always become this error: socket.error: (110, 'Connection timed out'). Is there something bad in the code? Does anyone knows what could be wrong? I'm using python from linux, and have no proxy... The code that I use is this (of course,

Re: [Tutor] sending mails from python

2006-10-21 Thread Python
On Sat, 2006-10-21 at 12:45 +0200, euoar wrote: I'm trying to learn how to send e-mails with python. But I always become this error: socket.error: (110, 'Connection timed out'). It sounds like you were unable to connect to the mail server. That could be due to a large number of network issues

Re: [Tutor] sending mails from python

2006-10-21 Thread Andrew Robert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 How about something like this? Create a function and then call it with the required optins of server url, sender address, destination address, subject, and message text? def send(serverURL=None, sender='', to='', subject='', text=''):