Someone can help me ?
i try to send sms and retrieve phone setting using atsms.
someone can give me some code ?
my mine doesn't work :
1. I connect with the phone
try
{
if (oPhone.IsConnected)
oPhone.Disconnect();
SetPhoneParameter();
oPhone.Connect();
}
catch (GeneralException ex)
{
oldStatus = string.Format("Erreur de connexion : {0}", ex.Message);
}
2. I send SMS
foreach(DestinataireInfo item in bsDestinataire)
{
try
{
oDestinataire = item;
FrmPrincipal.oPhone.SendSMS(item.Telephone, oMsg);
oStatus = string.Format("Message {0} envoyé avec succès vers {1}.", (++nbrMsgEnv).ToString(), item.Telephone);
}
catch (GeneralException ex)
{
oStatus = string.Format("Erreur d'envoi : {0}", ex.Message);
bgwSendMsg.ReportProgress(-1);
}
finally
{
bgwSendMsg.ReportProgress(nbrMsgEnv);
System.Threading.Thread.Sleep(100);
}
}
