Thursday, August 21, 2014

Sending Email Using Python

#-------------------------------------------------------------------------------
# Name:        module1
# Purpose:
#
# Author:      Ramesh
#
# Created:     21-08-2014
# Copyright:   (c) Ramesh Babu Y2014
# Licence:     Sky
#-------------------------------------------------------------------------------

import smtplib
fromaddr = 'From Email Id'
toaddrs  = 'To EMail Id'
msg = 'Enter you message here'

server = smtplib.SMTP("smtp.gmail.com:587")

server.starttls()

server.login("<<Your GMail Id>>","GMail Id Password")

server.sendmail(fromaddr, toaddrs, msg)

No comments:

Post a Comment