Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: smtplib send email by using gmail smtp server

Reply
Thread Tools

Re: smtplib send email by using gmail smtp server

 
 
Gabriel Genellina
Guest
Posts: n/a
 
      05-03-2009
En Sun, 03 May 2009 12:18:33 -0300, tiefeng wu <(E-Mail Removed)>
escribió:

> I'm tring send email using smtp.gmail.com
>
> here's the code:
>
> *s = SMTP('**smtp.gmail.com* <http://smtp.gmail.com/>*', 25)
> s.set_debuglevel(1)*
> *s.ehlo()
> s.starttls()
> s.ehlo()
> s.login(mygmailaccount, mygmailpassword)
> s.sendmail(from_addr, to_addr_list, message)
> s.close()*


I've tested with 3.0.1 on Windows XP and worked fine. Seems to be a
problem in the SSL support, but that's all I could say.

--
Gabriel Genellina

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send email programmatically from a gmail email a/c when port587(smtp) is blocked ashish makani Python 5 09-20-2012 07:56 AM
send SMTP mail using JavaMail with gmail account jrefactors@hotmail.com Java 15 07-11-2012 02:01 PM
[SMTPLIB] how to send a "Multiline" mail with smtplib? Evan Python 3 06-23-2008 08:50 AM
send email using gmail as smtp Junkone Ruby 3 12-20-2007 10:27 PM
smtplib.SMTP "no attributes SMTP" Copelandia Cyanescens Python 2 07-31-2004 07:24 PM



Advertisments