Created
May 16, 2019 21:32
-
-
Save okay-type/10102b0dbd5e598e50b8dbbf5d8e166c to your computer and use it in GitHub Desktop.
send email from python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smtplib | |
# this uses a burner gmail account to send from | |
# I use this to email my phone's sms email | |
email = '[email protected]' | |
text = 'hello sms' | |
server = smtplib.SMTP('smtp.gmail.com', 587) | |
server.starttls() | |
server.login('[email protected]', 'password') | |
server.sendmail('Robofont', email, text) | |
server.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment