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

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.

<title>Send SMS Message</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<form action="" 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>Auth <br >
<input type="text" name="auth">
<p>from <br >
<input type="text" name="fromMobile">
<p>to <br >
<input type="text" name="toMobile">
<p>to <br >
<input type="text" name="toMobile">
<p>msg <br >
<input type="text" name="msg" value="">
<p>restrictSize <br >
<input type="text" name="restrictSize" size="8" value="">
<p>Return Url <br >
<input type="text" name="returnUrl">
<input type="submit" name="Submit" value="Submit">

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 2020 Iflow. All Rights Reserved. Terms and Conditions | Cookie Preferences | Privacy Policy