Skip to content

@123Phil /mail.py
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple python text mailer
import smtplib
username = 'gmail_username'
password = 'gmail_password'
fromaddr = 'gmail_username@gmail.com'
toaddrs = '10digit_phone_number@txt.att.net'
msg = 'Message to be sent'
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(username,password)
server.sendmail(fromaddr, toaddrs, msg)
server.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.