I apologize for the repost, I originally posted the following question in mid August, when (probably) most of you were in vacation ;) Hi, I developped a small app using VisualStudio 2005, CF 2.0 C# that targets the Windows Mobile 6.0 Professional operating system. It tries to send sms in 2 different ways: Direct:
string NumTelefono = textBox1.Text;
string Messaggio = textBox2.Text;
if (Messaggio.Length > 255)
Messaggio = Messaggio.Substring(0, 255);
SmsMessage sendMsg = new SmsMessage();
Recipient recpt = new Recipient(NumTelefono);
sendMsg.Body = Messaggio;
sendMsg.To.Add(recpt);
sendMsg.RequestDeliveryReport = true;
sendMsg.Send();
Using Pocket Outlook:
string NumTelefono = textBox1.Text;
string Messaggio = textBox2.Text;
if (Messaggio.Length > 255)
Messaggio = Messaggio.Substring(0, 255);
using (OutlookSession session = new OutlookSession())
{
SmsAccount smsAccount = session.SmsAccount;
SmsMessage smsMessage2 = new SmsMessage(NumTelefono, Messaggio);
smsAccount.Send(smsMessage2);
}
I tried both with the emulator and a real device, the sms gets sent but it's not stored in the "SMS\Sent Items". Is there a way to implement such functionality ?
Ciao Marco