Email Item properties

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;
 
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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top