I am sending this to all whom have problem in sending sms from your application. It's works no problem with the Clickatell Provider:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
try
{
WebClient client = new WebClient();
string to, msg;
to = textBoxTo.Text;
msg = textBoxMsg.Text;
string baseurl = "http://api.clickatell.com/http/sendmsg?api_id=xxxxx&user=xxxxx&password=xxxxx&to='"+to+"'&text='"+msg+"'";
client.OpenRead(baseurl);
MessageBox.Show("successfully send Message");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}
Now I need to know if someone knows how to do the inverse (from your Cellphone to the same application).