none
send mail from windows mobile

    Question

  • Hi

    Now i am working with Windows CE application in C#.NET v 3.5.

    I want to send a custom mail with attachment. How can i send mail from windows mobile application?

    Which dll i should use in my application?

    Please anyone help me with sample code.

    Thanks in advance
    Tuesday, January 06, 2009 7:54 AM

All replies

  • Hi
    you can send mail from your windows mobile with the help of Microsoft.WindowsMobile.PocketOutlook namespace....
     only few lines of code requires . If you do googling u can find that code..

    Monday, January 19, 2009 9:06 AM
  • Hi NMohanraja,

    Here's a quick sample:

    OutlookSession session = new OutlookSession();
    EmailMessage email = new EmailMessage();
    email.To.Add(new Recipient("Christian Helle", christian@nospam.com));
    email.Subject = "Sending mail in C#";
    email.BodyText = "This is how to send an email in Windows Mobile";
    email.Send(session.EmailAccounts[0]);



    Hope this will help you. :)
    Thanks, Mohsin Shaikh.
    • Proposed as answer by Mohsin S Wednesday, September 02, 2009 11:24 AM
    Wednesday, September 02, 2009 11:15 AM