import smtplib
from email.mime.text import MIMEText

# # Replace the number with your own, or consider using an argument\dict for multiple people.
# to_number = '0035799359864{}'.format(carriers['att'])
# auth = ('<EMAIL>', '<PASSWORD>')
GOOGLE_MAIL_USERNAME = '<EMAIL>'
GOOGLE_MAIL_PASSWORD = '<PASSWORD>'
GOOGLE_MAIL_USERNAME = '<EMAIL>'
GOOGLE_MAIL_PASSWORD = '<PASSWORD>'
GOOGLE_MAIL_USERNAME = '<EMAIL>'
GOOGLE_MAIL_PASSWORD = '<PASSWORD>'
# # Establish a secure session with gmail's outgoing SMTP server using your gmail account
# server = smtplib.SMTP( "smtp.gmail.com", 587 )
# server.starttls()
# server.login(auth[0], auth[1])


username = GOOGLE_MAIL_USERNAME
password = GOOGLE_MAIL_PASSWORD

vtext = <EMAIL>"
message = "this is the message to be sent"

msg = MIMEText("""From: %s
To: %s
Subject: text-message
%s""" % (username, vtext, message))

server = smtplib.SMTP('smtp.gmail.com',587)
server.starttls()
server.login(username,password)
server.sendmail(username, vtext, msg.as_string())
server.quit()
import smtplib
from email.mime.text import MIMEText

# # Replace the number with your own, or consider using an argument\dict for multiple people.
# to_number = '0035799359864{}'.format(carriers['att'])
# auth = ('<EMAIL>', '<PASSWORD>')
GOOGLE_MAIL_USERNAME = '<EMAIL>'
GOOGLE_MAIL_PASSWORD = '<PASSWORD>'
GOOGLE_MAIL_USERNAME = '<EMAIL>'
GOOGLE_MAIL_PASSWORD = '<PASSWORD>'
GOOGLE_MAIL_USERNAME = '<EMAIL>'
GOOGLE_MAIL_PASSWORD = '<PASSWORD>'
# # Establish a secure session with gmail's outgoing SMTP server using your gmail account
# server = smtplib.SMTP( "smtp.gmail.com", 587 )
# server.starttls()
# server.login(auth[0], auth[1])


username = GOOGLE_MAIL_USERNAME
password = GOOGLE_MAIL_PASSWORD

vtext = <EMAIL>"
message = "this is the message to be sent"

msg = MIMEText("""From: %s
To: %s
Subject: text-message
%s""" % (username, vtext, message))

server = smtplib.SMTP('smtp.gmail.com',587)
server.starttls()
server.login(username,password)
server.sendmail(username, vtext, msg.as_string())
server.quit()
# # Replace the number with your own, or consider using an argument\dict for multiple people. # to_number = '0035799359864{}'.format(carriers['att']) # auth = ('<EMAIL>', '<PASSWORD>') # # Establish a secure session with gmail's outgoing SMTP server using your gmail account # server = smtplib.SMTP( "smtp.gmail.com", 587 ) # server.starttls() # server.login(auth[0], auth[1]) From: %s To: %s Subject: text-message %s