Sent A Simple Email Using Python SMTP And SSL Module

Hi Guys In This Blog Lets Learn About Making A Simple Email Sending Script Using Python, Using SMTP And SSL Modules

-->  At First You Have To Enable App Passwords

                For That Watch This Video -- https://youtu.be/5gWcL650aA4

--> Now Start Coding

      Source Code:-

import smtplib,ssl
email="enter your email"
password="enter the password you got from App Passwords"
port=465

context= ssl.create_default_context()

server = smtplib.SMTP_SSL("smtp.gmail.com",port,context=context)
server.login(email,password)
message="Hi I Am Belgin"
sender_mail=email
receiver_email=email 
server.sendmail(sender_mail,receiver_email,message)
server.close()

If You Got Any Other Problems Just Contact Me In Any Of The Contact Down Below

           --> Instagram  -- @belgin_android
           --> Whatsapp  -- +91 8940900947

Comments

Popular posts from this blog

ApowerMirror Software VIP for FREE ...

PicsArt Gold Apk Totally For Free

InShot Pro Full Version Totally For Free 100% Working