Skip to content

Instantly share code, notes, and snippets.

@EsendexDev
Created November 6, 2013 11:15
Show Gist options
  • Save EsendexDev/7334461 to your computer and use it in GitHub Desktop.
Save EsendexDev/7334461 to your computer and use it in GitHub Desktop.
Creating and Sending SMS messages using the Esendex PHP SDK - Full details here: http://developers.esendex.com/
$message = new \Esendex\Model\DispatchMessage(
"WebApp", // Send from
"01234567890", // Send to any valid number
"My Web App is SMS enabled!",
\Esendex\Model\Message::SmsType
);
$authentication = new \Esendex\Authentication\LoginAuthentication(
"EX000000", // Your Esendex Account Reference
"[email protected]", // Your login email address
"password" // Your password
);
$service = new \Esendex\DispatchService($authentication);
$result = $service->send($message);
print $result->id();
print $result->uri();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment