Call: 01244 573240   Support: 0845 0093182
Follow Us:
Sign Up Free
Full Access - Free Credits
Takes 60 Seconds

Our price promise

We will match or beat any similar price offer.

Find out more

Our Latest Reviews

View all

View our Tutorials

See our latest Messenger video tutorials for help and advice on how to get started

Watch Now

Success stories

Testimonials from clients in your sector

View Testimonials

Send SMS Texts using our XML API

Use an XML format to send SMS messages

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.

  • Post your requests to http://www.txtlocal.com/xmlapi.php

  • Use 1 'SMS' tag per submission

  • Each message should be contained in a 'Msg' tag

  • If necessary, specify the custom ID in the 'ID' property

  • If necessary, specify a receipt notification URL in the 'rcpurl' property

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.

								<?php
								$xmlData = '
								<SMS>
								<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">
								<Messages>
								<Msg ID="15" Number="447123456789">
								<Text></Text>
								</Msg>
								<Msg ID="16" Number="447123456789">
								<Text></Text>
								</Msg>
								</Messages>
								</Sender>
								</Account>
								</SMS>'; 
								$post = 'data='. urlencode($xmlData); 
								$url = "http://www.txtlocal.com/xmlapi.php";
								$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); 
								curl_close($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

Create Your Free Account - 60 Second Signup - Free Expert Support

"We use text local to contact our customers prior to appointments, since then we have noticed that our number of 'no shows' has decreased and our customers prefer this method to a voice call. The site is very user friendly and easy to get on with. We have not come across any problems with the system and are extremely happy and will continue to use it. The credits are cheap and the free trial was excellent as we got to play with the site to fully understand the outlay before we purchased any credits. We rang the help line to ask advice before we set it up and the advisor gave us all the information we needed and we didn't feel like we were being pushed into making a decision on the phone." - muscaberreds

Read more reviews >

Our website uses cookies, mmm.... These are small files that make our website work better. If you're unhappy with this you will need to change your cookie settings.
Click here to view our privacy policy Or Click the x button to close.