Secure Login
HTTP(S) GET Command
Overview

2sms customers can send SMS messages from their own web pages by forming a HTTP(S) GET command, using a query string to build up the information needed by 2sms in order to deliver an SMS message.


Specifications
URL https://www.2sms.com/xml/sendsms.aspx?username=$USERNAME&password=$PASSWORD&mobile=$PHONE&sms=$MESSAGE&api_id=$APIID
Username 2sms username
Password 2sms password
Phone Mobile phone number to which the SMS message is to be sent. (International number format preferred). US and Australian customers can enter 10 digit domestic mobile phone numbers, UK customers can enter 11 digit domestic mobile phone numbers.
Message The text message you wish to send. This can be greater than 160 characters; (longer messages incur additional costs and can use foreign language alphabets like Chinese and Arabic).
API ID action=sendmessage

Notes

Customers wishing to use HTTP(S) POST instead of HTTP(S) GET command should choose our XML services in place of this solution. Visit www.2sms.com/forum to learn more or ask technical questions.


Customers can send over HTTP or HTTP(S). We recommend HTTP(S) to ensure encryption of information sent to 2sms. Messages sent can be tracked on the web site or using our XML reporting services.

©2sms Business Text Messaging,2018