Thursday, October 02, 2008

I need to open a new email message in Pocket Outlook today. Keep in mind that’s different from just programmatically sending an email from my application.

Here’s how to programmatically send an email from your application:

   1: Microsoft.WindowsMobile.PocketOutlook.EmailMessage email = new EmailMessage();
   2: email.From = "From";
   3: email.BodyText = "BodyText";
   4: email.To = "To";
   5: email.Subject = "Subject";
   6: email.Send("AccountName");

 Here’s how to programmatically create a new mail message in Pocket Outlook and more:

[Source: Open a Specific Email Account in Pocket Outlook? - WM Experts]

  • To open inbox for MyMail:
    • tmail.exe -service MyMail
  • To additionally launch a new message with no recipient for sending:
    • tmail.exe -service MyMail -to ""
  • To have the new message pre-addressed:
  • To add a cc (copy to):
  • To add a bcc (blind copy):
  • To have the new message pre-addressed to multiple addresses:
  • To additionally add the subject line "Call Me Tonight":
    • tmail.exe -service MyMail -to nobody@nowhere.com -subject "Call Me Tonight"
  • To additionally add a message in the body:
    • tmail.exe -service MyMail -to nobody@nowhere.com -subject "Call Me Tonight" -body "at 555-1212"
  • To attach the file "Recipe.xls" in the "My Documents" folder:
    • tmail.exe -service MyMail -to nobody@nowhere.com -subject "Call Me Tonight" -body "at 555-1212" -attach "\My Documents\Recipe.xls"

Thursday, October 02, 2008 2:31:00 PM (Eastern Standard Time, UTC-05:00)  #    Comments [2]  |  Trackback

Theme design by Jelle Druyts

Pick a theme: