#sending a mail


import smtplib
FROM="bogadipayal573@gmail.com"
TO="xxx@gmail.com"
SUBJECT="mail test"
TEXT="pyhton"
pwd="xxxxxxxxxxxxx"
message="SUBJECT:%s\n\n%s"%(SUBJECT,TEXT)
print(message)
server=smtplib.SMTP("smtp.gmail.com",587)
server.ehlo()
server.starttls()
server.login(FROM,pwd)
server.sendmail(FROM,TO,message)
server.close()
print("successfully sent mail")
d1c9f5375234c806f64df505a6b5af4c5914fe1d
<mask token>

<mask token>
print(message)
<mask token>
server.ehlo()
server.starttls()
server.login(FROM, pwd)
server.sendmail(FROM, TO, message)
server.close()
print('successfully sent mail')

<mask token>
FROM = 'bogadipayal573@gmail.com'
TO = 'xxx@gmail.com'
SUBJECT = 'mail test'
TEXT = 'pyhton'
pwd = 'xxxxxxxxxxxxx'
message = 'SUBJECT:%s\n\n%s' % (SUBJECT, TEXT)
print(message)
server = smtplib.SMTP('smtp.gmail.com', 587)
server.ehlo()
server.starttls()
server.login(FROM, pwd)
server.sendmail(FROM, TO, message)
server.close()
print('successfully sent mail')

import smtplib
FROM = 'bogadipayal573@gmail.com'
TO = 'xxx@gmail.com'
SUBJECT = 'mail test'
TEXT = 'pyhton'
pwd = 'xxxxxxxxxxxxx'
message = 'SUBJECT:%s\n\n%s' % (SUBJECT, TEXT)
print(message)
server = smtplib.SMTP('smtp.gmail.com', 587)
server.ehlo()
server.starttls()
server.login(FROM, pwd)
server.sendmail(FROM, TO, message)
server.close()
print('successfully sent mail')

#sending a mail


import smtplib
FROM="bogadipayal573@gmail.com"
TO="xxx@gmail.com"
SUBJECT="mail test"
TEXT="pyhton"
pwd="xxxxxxxxxxxxx"
message="SUBJECT:%s\n\n%s"%(SUBJECT,TEXT)
print(message)
server=smtplib.SMTP("smtp.gmail.com",587)
server.ehlo()
server.starttls()
server.login(FROM,pwd)
server.sendmail(FROM,TO,message)
server.close()
print("successfully sent mail")