Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mail = smtplib.SMTP('smtp.gmail.com', 587)
- mail.ehlo()
- mail.starttls()
- mail.login('example@gmail.com','example123')
- mail.sendmail('example@gmail.com','example_1@gmail.com','Message Text')
- mail.close()
Add Comment
Please, Sign In to add comment