Created
June 3, 2014 21:59
-
-
Save RobSpectre/2eec6311531bde28fc44 to your computer and use it in GitHub Desktop.
Outbound sms with an email address.
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
<?php | |
require_once('Services/Twilio.php'); | |
$ACCOUNT_SID = "ACxxxxxxxxxxxxxxxxxxxxx"; | |
$AUTH_TOKEN = "yyyyyyyyyyyyyyyyyyyyyyyy"; | |
$client = new Services_Twilio($ACCOUNT_SID, $AUTH_TOKEN); | |
$message = $client->account->messages->sendMessage( | |
'+15556667777', // From a Twilio number in your account | |
'+15558675309', // Text any number | |
"Email me at [email protected]" | |
); | |
print $message->sid; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment