none
View Source of New Mail item. RRS feed

  • Question

  • How do you view the html source of a new message?

    I open a new outlook message in code using the following code:

     var mail = this.Application.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem;

    mail.HTMLBody  = "<html><head></heads><body><div>Test<div></body></html>";

    mail.Display();

    Now once you have the message open, what is the shortcut or way to view the source?

    Do not confuse this with MailItems in your inbox, you can view the source on these by going to Move, Actions, etc. My question is how do I view the source of html of a new message.

    Watson

    Saturday, November 3, 2012 10:26 PM

All replies