Register Now
Get started in minutes - simple, quick & free.
PHP code sample
Simplest case - sending a single message, with no error checking:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://bulksms.vsms.net:5567/eapi/submission/send_sms/2/2.0');
curl_setopt ($ch, CURLOPT_POST, 1);
$post_fields = 'username=myusername&password=xxxxxx&message=Testing+from+PHP&msisdn=44123123123';
curl_setopt ($ch, CURLOPT_POSTFIELDS, $post_fields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response_string = curl_exec($ch);
curl_close($ch);
print $response_string."\n";
?>