Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Read View Menu Extension

Windows Mobile 6.5
4/8/2010

This code sample is named ReadViewMenuExt. It demonstrates how to reply to an email message using a default email account. This is enabled for mail messages in all non-default email accounts.

To run the code sample
  1. Navigate to the solution file (*.sln), and double-click it. By default, the solution files are copied to the following folders:

    C:\Program Files\Windows Mobile 6.5.3 DTK\Samples\Common\CPP\Win32\ReadViewMenuExt

    Microsoft Visual Studio launches and loads the solution.

  2. Build the solution (Ctrl+Shift+B).

  3. Deploy the solution (F5).

To deploy the solution on a Windows Mobile Standard Emulator, you must sign and provision the DLL.

To deploy the application on a Windows Mobile Standard Emulator
  1. In Visual Studio, right-click the ReadViewMenuExt project in Solution Explorer, and then click Properties.

  2. Click Authenticode Signing.

  3. Click the button associated with Certificate.

  4. Click Manage Certificates.

  5. Click Import.

  6. Click Next.

  7. Navigate to the Visual Studio Test Certificates folder. (the default location for Visual Studio 8 is C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SDKTools\TestCertificates).

  8. Select TestCert_Privileged.pfx.

  9. Click Next.

  10. Click Next.

  11. Click Next.

  12. Click Finish.

  13. Click Close.

  14. Click OK.

  15. Click the drop-down associated with Provision Device, and select Privileged Certificate Store.

  16. Click OK.

After you build this code sample, you can configure Visual Studio to debug it remotely on the mobile device by following these steps.

To debug this project
  1. In Visual Studio, right-click the ReadViewMenuExt project in Solution Explorer, and then click Properties.

  2. Expand Configuration Properties, and click Debugging.

  3. In Debugger to launch:, select Smart Device Native Debugger.

  4. In Remote Executable, type "\Windows\tmail.exe".

  5. Click OK to save your changes.

  6. Press F5 to begin debugging.

  • In the read view of a message, the menu will contain the additional option Reply Using Outlook E-mail.
  • Actioning on this item launches a new compose form for a reply that will be sent from the Outlook E-mail account.

It is assumed that you have a POP/IMAP mail account setup, and have several e-mail messages in your Inbox.

SDK: Windows Mobile Professional SDK and Windows Mobile Standard SDK

Development Environment: Visual Studio 2005 or 2008.

ActiveSync: Version 4.5.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.