/ Published in: C#

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
string MATRIXURL = "http://www.smsmatrix.com/matrix"; string PHONE = "12506063167"; string PASSWORD = Server.UrlEncode ("pass72727"); string TXT = Server.UrlEncode ("This is a test, pls ignore"); string q = "username=" + USERNAME + "&password=" + PASSWORD + "&phone=" + PHONE + "&txt=" + TXT; HttpWebRequest req = (HttpWebRequest)WebRequest.Create (MATRIXURL); req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; req.ContentLength = q.Length; streamOut.Write (q); streamOut.Close(); string res = streamIn.ReadToEnd(); Console.WriteLine ("Matrix API Response:\n" + res); streamIn.Close();
URL: http://www.smsmatrix.com/?sms-gateway
Comments
