Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created June 3, 2014 21:59
Show Gist options
  • Save RobSpectre/2eec6311531bde28fc44 to your computer and use it in GitHub Desktop.
Save RobSpectre/2eec6311531bde28fc44 to your computer and use it in GitHub Desktop.
Outbound sms with an email address.
<?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