none
MapiMessage w/ Unicode text RRS feed

  • Question

  • I'm working w/ code that uses the Mapi* interop classes for constructing an email. Specifically, the MapiMessage class doesn't seem to work well w/ unicode characters. Asian characters end up as question marks instead.

    Is there a way to set the encoding type for MapiMessage?
    Monday, June 30, 2008 3:49 PM

Answers

  • MAPI is ancient.  And not supported by this forum.  We can help you when you switch to System.Net.MailMessage
    Hans Passant.
    • Marked as answer by Bruno Yu Thursday, July 3, 2008 2:41 AM
    Monday, June 30, 2008 5:29 PM
    Moderator

All replies

  • MAPI is ancient.  And not supported by this forum.  We can help you when you switch to System.Net.MailMessage
    Hans Passant.
    • Marked as answer by Bruno Yu Thursday, July 3, 2008 2:41 AM
    Monday, June 30, 2008 5:29 PM
    Moderator
  • I agree - and I'd prefer to move the code to the System.Net classes, but I think the intention of using the interop MAPI classes was to be able to open the generated email message in the default email app, instead of just sending it off automatically (we want the user to actually press the "send" button)

    Other than using the "mailto" protocol,  I was under the impression the Win32 MAPI classes were the only way to launch the default email client.
    Monday, June 30, 2008 8:41 PM