Re: help using smtplib to work ..

2006-11-09 Thread Gabriel Genellina
At Thursday 9/11/2006 00:45, Jordan wrote: Your post was definitely the most helpful for me. For some reason, smtp for gmail seems to require that you call server.ehlo() a second time, after having called server.starttls(), otherwise, the server won't accept authorization. Thanks. That's cle

Re: help using smtplib to work ..

2006-11-09 Thread Tim Williams
On 8 Nov 2006 19:45:00 -0800, Jordan <[EMAIL PROTECTED]> wrote: > For some reason, > smtp for gmail seems to require that you call server.ehlo() a second > time, after having called server.starttls(), otherwise, the server > won't accept authorization. Thanks. Not just GMAIL, all (RFC Complian

Re: help using smtplib to work ..

2006-11-08 Thread Jordan
Your post was definitely the most helpful for me. For some reason, smtp for gmail seems to require that you call server.ehlo() a second time, after having called server.starttls(), otherwise, the server won't accept authorization. Thanks. -Jordan Gabriel Genellina wrote: > At Wednesday 8/11/20

Re: help using smtplib to work ..

2006-11-08 Thread Tim Williams
On 09/11/06, Nicolas G <[EMAIL PROTECTED]> wrote: > > > > > > Usually when sending/relaying without authentication, the From is > > irrelevant, only the To is taken into account. Maybe, GMAIL do > > something different because they have to put the mail in the sender's > > mailbox as well as the r

Re: help using smtplib to work ..

2006-11-08 Thread Tim Williams
On 8 Nov 2006 15:31:27 -0800, NicolasG <[EMAIL PROTECTED]> wrote: > > > > > > > Under outgoing mail smtp server, use smtp.gmail.com. Since it requires SMTP > > authorization, use your Gmail account as username (e.g. [EMAIL PROTECTED]) > > and > > your Gmail password as password. You can turn TSL

Re: help using smtplib to work ..

2006-11-08 Thread NicolasG
> > > Under outgoing mail smtp server, use smtp.gmail.com. Since it requires SMTP > authorization, use your Gmail account as username (e.g. [EMAIL PROTECTED]) and > your Gmail password as password. You can turn TSL on or off. > > > > The email server requires authentication before it can send. >

Re: help using smtplib to work ..

2006-11-08 Thread Gabriel Genellina
At Wednesday 8/11/2006 19:23, NicolasG wrote: I'm using the following code to send e-mail through python: import smtplib fromaddr = '[EMAIL PROTECTED]' toaddrs = '[EMAIL PROTECTED]' subject = 'someting for subject !' msg = 'This is body of the mail.' msg = 'From: ' + fromaddr + '\nTo: ' + t

Re: help using smtplib to work ..

2006-11-08 Thread Larry Bates
NicolasG wrote: > I'm using the following code to send e-mail through python: > > import smtplib > > fromaddr = '[EMAIL PROTECTED]' > toaddrs = '[EMAIL PROTECTED]' > subject = 'someting for subject !' > > msg = 'This is body of the mail.' > > msg = 'From: ' + fromaddr + '\nTo: ' + toaddrs + '\

help using smtplib to work ..

2006-11-08 Thread NicolasG
I'm using the following code to send e-mail through python: import smtplib fromaddr = '[EMAIL PROTECTED]' toaddrs = '[EMAIL PROTECTED]' subject = 'someting for subject !' msg = 'This is body of the mail.' msg = 'From: ' + fromaddr + '\nTo: ' + toaddrs + '\nSubject:' + subject + '\n\n' + msg pr