.Net C.F. 2.0: Sent SMS don't get stored in the PocketOutlook "SMS\Sent Items" container
Mobile
1
Posts
1
Posters
0
Views
1
Watching
-
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