SENDING MESSAGE USING G-MAIL BY PYTHON

import smtplib
# Calling SMTP
s = smtplib.SMTP('smtp.gmail.com'587)
# TLS for network security
s.starttls()
# User email Authentication
s.login("YOUR GMAIL ID..."password="your pass")
# message to be sent
message = input("Enter Your message Here: ")
# sending the mail
s.sendmail("YOUR G-MAIL ID""TO WHOME WE ARE SENDING MESSAGE THE RECIEVER G-MAIL ID"
            msg=message)

Comments

  1. Hello TO EVERYONE THIS IS JUST FOR TO MAKE ME REMEMBER MY CODE

    ReplyDelete

Post a Comment

Popular posts from this blog

CALCULATING FACTORIALS IN PYTHON LANGUAGE

Automating Piano Tiles in Python Which is Damn easy!!!!!!!!