none
How to identify if email is generated from Outlook client? RRS feed

  • Question

  • Is there a way to identify if email is generated from outlook client or someother source (like blackberry etc..). I looked at the email properties and MAPIHeaders on the email and couldne make any difference.

    Thanks

    Wednesday, March 23, 2011 8:53 PM

Answers

  • I've never run into a flag or property like that, if you find one let me know :)

    I'm afraid that brute force is the only way I know of to do what you want, and as you say it would be a lot of combinations.


    Ken Slovak MVP - Outlook
    Thursday, March 24, 2011 6:55 PM

All replies

  • Outlook version? Is this for received emails that are arriving over the Internet? If so and you have Outlook 2007 or later you can use the MailItem.PropertyAccessor property to get the PR_TRANSPORT_MESSAGE_HEADERS property, which is a long string containing all the mail headers. Using PropertyAccessor you'd use GetProperty("http://schemas.microsoft.com/mapi/proptag/0x007D001E") to get the headers into a string variable.

    From there you would need to parse the headers string to find information about the sender and sending servers.


    Ken Slovak MVP - Outlook
    Thursday, March 24, 2011 2:33 PM
  • Thanks for the reply Ken.

    I am not looking for Oulook version but what type of client (like outlook, blackberry, etc..) sent the message. Forgetting about other type of clients even if I am able to identify Outlook sent messages accurately am good day one. I might have to use lot of combinations to identify client using Transport message header, isnt there simple flag/header which says this is sent from outlook?   

    Thursday, March 24, 2011 6:20 PM
  • I've never run into a flag or property like that, if you find one let me know :)

    I'm afraid that brute force is the only way I know of to do what you want, and as you say it would be a lot of combinations.


    Ken Slovak MVP - Outlook
    Thursday, March 24, 2011 6:55 PM