HTTP/s to SMS

Send texts using a standard HTTP web form by using the field names shown below. Forms need to be POSTed to

services.iflow.net/api/sendsms.aspx

Below is a description of the form fields that can be used.

Form Field Meaning
id The Iflow user ID of the sender. This is used to authenticate the sender.
auth The Iflow user's API code. This is not the same as the user's password. The code can be attained in the dashboard of your portal. This is used to authenticate the sender.
msg The actual message of the SMS text.
fromMobile The mobile number or mobile label of the originator/sender. NOTE: the 'address' must first be validated in the MESSAGING / SEND-FROM ADDRESSES section of IFLOW.
toMobile The intended recipient of the message
restrictSize An optional parameter to restrict the size of the message. The size is in message parts. 1 part = 160 characters. If this parameter is 1 and the message exceeds 160 characters in length then the message will be truncated.
returnUrl An optional parameter to redirect a browser to the given URL. If the message cannot be sent parameters are appended to the URL: errorCode and errorMsg.

Sample Form

Below is an example of a HTML form that can be used to send SMS texts.

<html>
<head>
<title>Send SMS Message</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<form action="https://services.iflow.net/api/sendsms.aspx" method="post" acceptcharset="utf-8">
<p>IFLOW HTTP to SMS Gateway</p>
<p>Basic Test Form</p>
<p>id <br >
<input type="text" name="id">
</p>
<p>Auth <br >
<input type="text" name="auth">
</p>
<p>from <br >
<input type="text" name="fromMobile">
</p>
<p>to <br >
<input type="text" name="toMobile">
</p>
<p>to <br >
<input type="text" name="toMobile">
</p>
<p>msg <br >
<input type="text" name="msg" value="">
</p>
<p>restrictSize <br >
<input type="text" name="restrictSize" size="8" value="">
</p>
<p>Return Url <br >
<input type="text" name="returnUrl">
</p>
<p></p>
<p> 
<input type="submit" name="Submit" value="Submit">
</p>
</form>
</body>
</html>
            

Message Length

A single text message is a maximum of 160 characters in length, including spaces. If the message is longer than this it will be sent as 2 or more texts that are recombined on the recipient’s mobile phone as one message. You are charged for each individual text.

You can specify the maximum number of texts to be used to send the message. For example to restrict it to 1 text set the restrictSize field to 1. With this set if the message is greater than 160 characters in length only the first 160 characters will be sent in 1 SMS message.

 
 
© Copyright 2014 Iflow. All Rights Reserved. Terms and Conditions | Privacy Policy