Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. .Net C.F. 2.0: Sent SMS don't get stored in the PocketOutlook "SMS\Sent Items" container

.Net C.F. 2.0: Sent SMS don't get stored in the PocketOutlook "SMS\Sent Items" container

Scheduled Pinned Locked Moved Mobile
csharpdockerquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marco Stinger
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups