hi
i am sending sms from C# application , i want to find failed sms details
below code using to send sms
unde button click
SendSms sms = new SendSms();
string status= sms.send(txtMobileno.Text, txtPwd.Text, txtMessage.Text, txtContacts.Text);
if (status == "1")
{
MessageBox.Show ("Sms Sent Succesufully");
}
else if (status == "2")
{
MessageBox.Show ("No internet available");
}
else
{
MessageBox.Show("Invalid login id and password");
}
then below code to send bulk sms so i import csv fileto textbox
private void button4_Click(object sender, EventArgs e)
{
DialogResult result = openFileDialog1.ShowDialog();
if (result == DialogResult.OK) // Test result.
{
string filename = openFileDialog1.FileName ;
string textline = "";
System.IO.StreamReader objReader;
objReader = new System.IO.StreamReader(filename);
do
{
textline = textline + objReader.ReadLine() + ",";
}
while (objReader.Peek() != -1);
txtContacts.Text = textline;
objReader.Close();
MessageBox.Show("Success");
}
}
}