DEPRECATED - Send SMS Texts using our XML API

Use an XML format to send SMS messages

Choose an API


We also offer a bulk XML interface for sending different messages to multiple recipients in bulk. This option is perfect for mail-merging text. We recommend no more than 500 tags in each submission. View our XML SMS API message prices or signup and start using XML to SMS today with 10 free texts.

Code Examples

We have a number of code examples available, however if you see a language that we don't have, please contact us and we'll create one for you.

						$xmlData = '
						<Account Name="yourusername" Password="yourpassword" Test="0" Info="1" JSON="0">
						<Sender From="Site 3" Sched="2012-01-21-14-59-00" rcpurl="http://yourdomain/yourreceiptscript.123">
						<Msg ID="15" Number="447XXX XXXXXX">
						<Msg ID="16" Number="447XXX XXXXXX">
						$post = 'data='. urlencode($xmlData); 
						$url = "";
						$ch = curl_init(); 
						curl_setopt($ch, CURLOPT_URL, $url); 
						curl_setopt($ch, CURLOPT_POST ,1); 
						curl_setopt($ch, CURLOPT_POSTFIELDS ,$post); 
						curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); 
						$data = curl_exec($ch); 
						echo $data; 

Debugging/Error Information

The following responses will be generated, accordingly:

OK The XML file has been received and processed
Error while parsing the document The XML format is not valid
Error=Invalid login Invalid username and/or password
Error - insufficient credits. You need: 10 credits Insufficient credits
Scroll for more