View Full Version : Can anyone recommend a SMS service provider?
James1
01-19-2007, 10:21 AM
Hi
I am looking to integrate a SMS facility into our website for both Bulk and single SMS message sends.
Has anyone used one they can recommend?
Thanks
James
pennyfx
02-19-2007, 05:31 AM
I use
http://clickatell.com/
And here's a function I use to send messages.
private static void SendIt(long number, string msg)
{
ASCIIEncoding encoding = new ASCIIEncoding();
StringBuilder postData = new StringBuilder();
postData.Append('api_id=' + m_Api_id);
postData.Append('&user=' + m_Username);
postData.Append('&password=' + m_Password);
postData.Append('&to=' + number);
postData.Append('&text=' + msg);
byte[] data = encoding.GetBytes(postData.ToString());
// Prepare web request...
HttpWebRequest myRequest =
(HttpWebRequest)WebRequest.Create('http://api.clickatell.com/http/sendmsg');
myRequest.Method = 'POST';
myRequest.ContentType = 'application/x-www-form-urlencoded';
myRequest.ContentLength = data.Length;
Stream newStream = myRequest.GetRequestStream();
// Send the data.
newStream.Write(data, 0, data.Length);
newStream.Close();
}
vBulletin® ©Jelsoft Enterprises Ltd.