Welcome, guest | Sign In | My Account | Store | Cart
#Sending an email through gmail using Python - Raghuram Reddy
import smtplib
fromaddr = 'raghuramgreddy@gmail.com'
toaddrs = 'raghuramgreddy@gmail.com'
msg = 'Email message from PYTHON Raghuram app'

#provide gmail user name and password
username = 'gmailUserName'
password = 'gmailPassword'

# functions to send an email
server = smtplib.SMTP('smtp.gmail.com:587')
server.ehlo()
server.starttls()
server.ehlo()
server.login(username,password)
server.sendmail(fromaddr, toaddrs, msg)
server.quit()

Diff to Previous Revision

--- revision 1 2010-08-25 09:32:34
+++ revision 2 2013-03-23 10:01:02
@@ -1,7 +1,7 @@
 #Sending an email through gmail using Python - Raghuram Reddy
 import smtplib
 fromaddr = 'raghuramgreddy@gmail.com'
-toaddrs = 'koteshkamisetty@gmail.com'
+toaddrs = 'raghuramgreddy@gmail.com'
 msg = 'Email message from PYTHON Raghuram app'
 
 #provide gmail user name and password

History