Archive

Archive for August, 2009

International SMS numbers

August 31st, 2009

To send a text message via the Hosting Ireland SMS API to an international number, the number needs to be formatted in such a way that the gateway knows how to route the message.

If the number was being sent to a UK number (country code +44), and the number itself was 07832165422 then the international number would be formatted as:
447832165422

This same format should work throughout all the mobile networks, but if any mobile networks report a problem with the number, then you can try the following formats as well:
00447832165422,
+447832165422

If you have any questions, or would like to contact me regarding this or any other articles here, please reply below, or post in the forum or email us at smsapi@hostingireland.ie.

international SMS

Non alphanumeric characters

August 27th, 2009

When a request to send an SMS is received by our gateway, it is processed by HTTP and some characters can commonly cause errors, which may lead to unpredictable results from your request.

To correct this issue, you should urlencode the message you want to send, so that the HTTP does not interfere with the message, this involves re-writing the message with characters such as & (ampersand) and # (hash) replaced with %23, %26 and so on. If your SMS program is written using PHP, there is a prebuilt function for performing this, which you can see here:
http://ie2.php.net/urlencode

It is important however, that you initially change spaces to ‘+’ before url encoding the message.

As usual, if you have any questions regarding this technology, or anything related to the Hosting Ireland SMS Gateway API, either comment below, or in our forum or email smsapi@hostingireland.ie.

text messages development , ,