none
how to write mail head in add in

    Question

  • I want to write an add in in C# to write into mail head for each mail. In the mailItem class I can not find attribute of mail head.Could anyone help me?
    Monday, May 16, 2011 8:00 PM

Answers

  • It is the  DASL name of a named MAPI property with the  string id (string namespace, as opposed to an int) of "X-Test-Header" and GUID of {00020386-0000-0000-C000-000000000046}.

     


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Wednesday, May 18, 2011 5:58 AM
  • The following code will send a message with an extra MIME header named "X-Test-Header" and its value will be "test header value:

     

    set Msg = Application.CreateItem(0)
    Msg.Subject = "test custom MIME header"
    Msg.To = "user@domain.demo"
    Msg.PropertyAccessor.SetProperty "http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/X-Test-Header", "test header value"
    Msg.Send


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Tuesday, May 17, 2011 6:22 PM

All replies