# Python email ## Product Gamil application of password - search appplication password in googol account ## Create Mail from ```python #create message formation import email.message msg=email.message.EmailMessage() # create msg object msg["From"]= "aa098933967901@gmail.com" msg["To"]= "aa098933967901@gmail.com" msg["Subject"] = "you ware hacked" #main topic #send text msg.set_content("meow") #Could send more type # msg.add_alternative("<h1>Meow</h1>meowhecker",subtype="html") ``` ## Connect to Gmail STMP server - SMTP (simple Mail Transport protocol)  Remark: login("sender gmail address ", "application password ") ```python= #Connect to SMTP server and send the mail import smtplib server = smtplib.SMTP_SSL("smtp.gmail.com",465) server.login("aa098933967901@gmail.com","ksoh cgmk ptwv lkfk") server.send_message(msg) server.close ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up