Re: [Tutor] SMTP('my.smtpserver.com') hangs

2013-03-09 Thread Joel Goldstick
On Sat, Mar 9, 2013 at 12:24 PM, Leam Hall wrote: > Python 2.6.6 on CentOS 6 > > I'm in section 3.4.12 of Wesley Chun's "Core Python Applications > Programming". The POP3 stuff works but I can't seem to get the SMTP to > connect, it just hangs and then times out. Running it in IDLE gets the same

[Tutor] SMTP('my.smtpserver.com') hangs

2013-03-09 Thread Leam Hall
Python 2.6.6 on CentOS 6 I'm in section 3.4.12 of Wesley Chun's "Core Python Applications Programming". The POP3 stuff works but I can't seem to get the SMTP to connect, it just hangs and then times out. Running it in IDLE gets the same thing. Have also tried with the port # set, as well. Th

[Tutor] smtp connection problem --- socket error 10061

2010-09-12 Thread Jack (Geliang) Song
I could not connect with gmail smtp server in Vista 32( worked ok in XP 32). Both vista and xp have same anti-virus software. >>> smtplib.SMTP("smtp.gmail.com",587) Traceback (most recent call last): File "", line 1, in smtplib.SMTP("smtp.gmail.com",587) File "C:\Program Files\Python2

Re: [Tutor] smtp connection problem --- socket error 10061

2010-09-11 Thread Steven D'Aprano
On Sat, 11 Sep 2010 04:09:20 am goodh...@gmail.com wrote: > I could not connect with gmail smtp server in Vista 32( worked ok > in XP 32). Both vista and xp have same anti-virus software. > > >>> smtplib.SMTP("smtp.gmail.com",587) > > Traceback (most recent call last): >File "", line 1, in >

Re: [Tutor] smtp connection problem --- socket error 10061

2010-09-10 Thread goodh...@gmail.com
smtp_ssl does not work for python 2.5. can not even connect. not mention about starttls. On 2010/9/10 19:39, Evert Rol wrote: Do things work when you use SSL or TLS (through SMTP_SSL or using starttls, respectively)? Perhaps Vista is more strict in checking for this when connecting through a

Re: [Tutor] smtp connection problem --- socket error 10061

2010-09-10 Thread Evert Rol
> I could not connect with gmail smtp server in Vista 32( worked ok in XP 32). > Both vista and xp have same anti-virus software. > smtplib.SMTP("smtp.gmail.com",587) > > Traceback (most recent call last): > File "", line 1, in >smtplib.SMTP("smtp.gmail.com",587) > File "C:\Program F

[Tutor] smtp connection problem --- socket error 10061

2010-09-10 Thread goodh...@gmail.com
I could not connect with gmail smtp server in Vista 32( worked ok in XP 32). Both vista and xp have same anti-virus software. smtplib.SMTP("smtp.gmail.com",587) Traceback (most recent call last): File "", line 1, in smtplib.SMTP("smtp.gmail.com",587) File "C:\Program Files\Python25\

Re: [Tutor] SMTP

2010-02-11 Thread Alan Gauld
"Grigor Kolev" wrote I try send a mail with smtplib Server work with postfix. I try it import smtplib s=smtplib.SMTP("localhost") This requires you to have an SMTP server running on localhost. Do you? I notice you say the server works with p

Re: [Tutor] SMTP

2010-02-11 Thread Kent Johnson
On Thu, Feb 11, 2010 at 3:13 PM, Grigor Kolev wrote: > Hi. > I try send a mail with smtplib > Server work with postfix. > I try it > >  import smtplib >  s=smtplib.SMTP("localhost") > tolist=['grigor.ko...@gmail.com'] > msg = '''\ >  From: grigor.ko

[Tutor] SMTP

2010-02-11 Thread Grigor Kolev
Hi. I try send a mail with smtplib Server work with postfix. I try it import smtplib s=smtplib.SMTP("localhost") tolist=['grigor.ko...@gmail.com'] msg = '''\ From: grigor.ko...@gmail.com Subject: testin' This is a test ''' s.sendmail("t...@local"

Re: [Tutor] smtp project

2010-01-18 Thread Kent Johnson
On Sun, Jan 17, 2010 at 9:57 PM, Kirk Z Bailey wrote: > There is no smtp server available, these are the cards I am delt; can you > advise on how to play them? A couple of possibilities: - I'm no expert on SMTP but don't the MTAs talk SMTP to each other on port 25? Could you use smtplib to talk

Re: [Tutor] smtp project

2010-01-18 Thread Adam Bark
2010/1/17 Kirk Z Bailey > I am writing a script that will send an email message. This will run in a > windows XP box. The box does not have a smtp server, so the script must > crete not merely a smtp client to talk to a MTA, it must BE one for the > duration of sending the message- then shut off,

Re: [Tutor] smtp project

2010-01-17 Thread Alan Plum
On So, 2010-01-17 at 15:45 -0500, Kirk Z Bailey wrote: > I am writing a script that will send an email message. This will > run in a windows XP box. The box does not have a smtp server, so > the script must crete not merely a smtp client to talk to a MTA, > it must BE one for the duration of sen

Re: [Tutor] smtp project

2010-01-17 Thread Steve Willoughby
Kent Johnson wrote: > On Sun, Jan 17, 2010 at 3:45 PM, Kirk Z Bailey > wrote: >> I am writing a script that will send an email message. This will run in a >> windows XP box. The box does not have a smtp server, so the script must >> crete not merely a smtp client to talk to a MTA, it must BE one

Re: [Tutor] smtp project

2010-01-17 Thread Kent Johnson
On Sun, Jan 17, 2010 at 3:45 PM, Kirk Z Bailey wrote: > I am writing a script that will send an email message. This will run in a > windows XP box. The box does not have a smtp server, so the script must > crete not merely a smtp client to talk to a MTA, it must BE one for the > duration of sendin

[Tutor] smtp project

2010-01-17 Thread Kirk Z Bailey
I am writing a script that will send an email message. This will run in a windows XP box. The box does not have a smtp server, so the script must crete not merely a smtp client to talk to a MTA, it must BE one for the duration of sending the message- then shut off, we don't need no bloody op0en

Re: [Tutor] SMTP Module Help

2009-01-07 Thread Chris Babcock
On Wed, 07 Jan 2009 15:47:25 +0100 Ole Henning Jensen wrote: > Marco Petersen wrote: > > I'm using Python 2.5.4. I wanted to try out the SMTP module. I > > tried to send an email through my Gmail account but it keeps saying > > that the connection was refused. > > error: (10061, 'Connection refu

Re: [Tutor] SMTP Module Help

2009-01-07 Thread Damon Timm
On 1/6/09, Marco Petersen wrote: > I'm using Python 2.5.4. I wanted to try out the SMTP module. I tried to send > an email through my Gmail account but it keeps saying that the connection > was refused. I used this example to get emailing from python through gmail smtp to work: http://codecommen

Re: [Tutor] SMTP Module Help

2009-01-07 Thread Ole Henning Jensen
Marco Petersen wrote: I'm using Python 2.5.4. I wanted to try out the SMTP module. I tried to send an email through my Gmail account but it keeps saying that the connection was refused. This is the code that I used : import smtplib msg = 'Test' server = smtplib.SMTP('smtp.gmail.com') server

Re: [Tutor] SMTP Module Help

2009-01-07 Thread Kent Johnson
On Tue, Jan 6, 2009 at 4:45 AM, Marco Petersen wrote: > I'm using Python 2.5.4. I wanted to try out the SMTP module. I tried to send > an email through my Gmail account but it keeps saying that the connection > was refused. > > This is the code that I used : > > import smtplib > msg = 'Test' > > >

Re: [Tutor] SMTP Module Help

2009-01-07 Thread A.T.Hofkamp
Marco Petersen wrote: I'm using Python 2.5.4. I wanted to try out the SMTP module. I tried to send an email through my Gmail account but it keeps saying that the connection was refused. This is the code that I used : import smtplib msg = 'Test' server = smtplib.SMTP('smtp.gmail.com') server

[Tutor] SMTP Module Help

2009-01-07 Thread Marco Petersen
I'm using Python 2.5.4. I wanted to try out the SMTP module. I tried to send an email through my Gmail account but it keeps saying that the connection was refused. This is the code that I used : import smtplib msg = 'Test' server = smtplib.SMTP('smtp.gmail.com') server.set_debuglevel(1) serv

Re: [Tutor] smtp error from cgi script

2006-08-03 Thread Ewald Ertl
Hi Rob, Rob wrote: > Hi, can someone help me interpret the error output below? > > I can't tell whether this is a coding error, or a configuration error, > in which case, it would be up to my host provider. > > For privacy reasons, I have changed the actual email addresses to > [EMAIL PROTECTE

[Tutor] smtp error from cgi script

2006-08-02 Thread Rob
Hi, can someone help me interpret the error output below?   I can't tell whether this is a coding error, or a configuration error, in which case, it would be up to my host provider.   For privacy reasons, I have changed the actual email addresses to [EMAIL PROTECTED] and [EMAIL PROTECTED]. 

Re: [Tutor] smtp error

2005-09-07 Thread Kent Johnson
Shitiz Bansal wrote: > does this error make sense to anyone? > > Traceback (most recent call last): > File "C:/Documents and > Settings/Administrator/Desktop/lkp.py", line 46, in > -toplevel- > s.sendmail(msg['From'], i, msg.as_string()) > File "C:\Python24\lib\smtplib.py", line 692, in >

Re: [Tutor] smtp error

2005-09-07 Thread Kent Johnson
Danny Yoo wrote: > According to: > > http://www.python.org/doc/lib/SMTP-objects.html > > the second argument to 's.sendmail()' needs to be a list, even if it is a > list of a single element. I'm not positive that this is the bug, but it's > a possible error. The docs are incorrect and the l

Re: [Tutor] smtp error

2005-09-06 Thread Danny Yoo
On Tue, 6 Sep 2005, Shitiz Bansal wrote: > does this error make sense to anyone? > > Traceback (most recent call last): > File "C:/Documents and > Settings/Administrator/Desktop/lkp.py", line 46, in > -toplevel- > s.sendmail(msg['From'], i, msg.as_string()) > File "C:\Python24\lib\smtpli

[Tutor] smtp error

2005-09-06 Thread Shitiz Bansal
does this error make sense to anyone? Traceback (most recent call last): File "C:/Documents and Settings/Administrator/Desktop/lkp.py", line 46, in -toplevel- s.sendmail(msg['From'], i, msg.as_string()) File "C:\Python24\lib\smtplib.py", line 692, in sendmail raise SMTPDataError(code,

Re: [Tutor] Smtp

2005-05-06 Thread Karl Pflästerer
On 6 Mai 2005, [EMAIL PROTECTED] wrote: >I tried to use the mailserver script in library reference to send > mails but it gives an error:The script and the error are below.Why > does it give this error?How can i fix? [...] > ERROR: > > Traceback (most recent call last): > File "D:\Python23\

[Tutor] Smtp

2005-05-06 Thread Ali Polatel
Dear Friends, I tried to use the mailserver script in library reference to send mails but it gives an error:The script and the error are below.Why does it give this error?How can i fix? import smtplib def prompt(prompt): return raw_input(prompt).strip() fromaddr = prompt("From: ") to