Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 318 Bytes

emailSending.md

File metadata and controls

17 lines (13 loc) · 318 Bytes
import smtplib

server=smtplib.SMTP("smtp.gmail.com",587)
server.starttls()
a=input("enter mail")
b=input("enter password")
server.login('%s'%a,'%s'%b)

server.sendmail('from_mail@gmail.com',
                'to_mail@gmail.com',
                "message")

server.quit()

print("email sent successfully")