Email Item properties

  • Thread starter Thread starter peteZ
  • Start date Start date
P

peteZ

Hi,

I'm writing an anti-spam plugin for Outlook.

The code snippet below allows me to get the subject of an Outlook emal item. How can I determine what other properties are available to be looked up ?

eg. if I was looking for the senders email address or domain name what would be the string to use to access this ?

thanks

- peteZ

string subject = item.GetType().InvokeMember( "Subject", BindingFlags.Public | BindingFlags.GetField | BindingFlags.GetProperty, null,

item, new object[] {}, System.Globalization.CultureInfo.InvariantCulture ) as string;
 
Hi,

I'm writing an anti-spam plugin for Outlook.

The code snippet below allows me to get the subject of an Outlook emal item. How can I determine what other properties are available to be looked up ?

eg. if I was looking for the senders email address or domain name what would be the string to use to access this ?

thanks

- peteZ

string subject = item.GetType().InvokeMember( "Subject", BindingFlags.Public | BindingFlags.GetField | BindingFlags.GetProperty, null,

item, new object[] {}, System.Globalization.CultureInfo.InvariantCulture ) as string;
 
Back
Top