<filename>Python_ABC/2-15ReceivingEmailAndTextMessages/sendMessage1.py
# textMyself.py - Defines the textmyself() function that texts a message
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/console

# Preset values:
accountSID = "ACbe036e2467f6b1b9b7eea6be626ef0a7"
authToken = "<PASSWORD>"
myTwilioNumber = '+19727553368'
myCellPhone = '+8613912345678'

def textMyself(message):
	client = Client(accountSID, authToken)
	client.messages.create(to=myCellPhone, body= message,
								 from_=myTwilioNumber
								 )
<filename>Python_ABC/2-15ReceivingEmailAndTextMessages/sendMessage1.py
# textMyself.py - Defines the textmyself() function that texts a message
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/console

# Preset values:
accountSID = "ACbe036e2467f6b1b9b7eea6be626ef0a7"
authToken = "<PASSWORD>"
myTwilioNumber = '+19727553368'
myCellPhone = '+8613912345678'

def textMyself(message):
	client = Client(accountSID, authToken)
	client.messages.create(to=myCellPhone, body= message,
								 from_=myTwilioNumber
								 )
# textMyself.py - Defines the textmyself() function that texts a message # Your Account Sid and Auth Token from twilio.com/console # Preset values: