Esempio n. 1
0
def send_txt_connor():
    account_sid = "Twilio Acc SID"
    auth_token = "Twilio Acc auth token"
    client = TwilioRestClient(account_sid, auth_token)
    msg = mail_pull2.clean_data()
    _ = client.messages.create(body=msg, to="+61411111111", from_="+61422222222")  # Use _ for dummy variable
    time.sleep(2)
    print(_.sid)
Esempio n. 2
0
import mail_pull2
import text

# Main program loop/logic intersection

# TODO: Create exchange email instead of using external Gmail account
# TODO:
try:
    # Get info/sanitize
    mail_pull2.get_mail()
    mail_pull2.clean_data()

    #Send text's
    text.send_txt_connor()
    # text.send_txt_yusuf()
    # text.send_txt_damian()
    # text.send_txt_richard()

    #Wipe mailbox
    mail_pull2.wipe_mailbox()

except:
    print("No new mail")