Custom Mail Fields

  • Thread starter Thread starter Ian Mackenzie
  • Start date Start date
I

Ian Mackenzie

Hi Guys

I am using outlook to send emails from my delphi application. Is there
anyway to create a couple of custom fields (with code), just for specific
messages so I can store some ID's of customers from my application in the
mail so I can see when those mails are sent?

Thanks

Ian
 
Use the Add method of the UserProperties collection.
 
Thanks

I managed to do it like this:

MailItem.UserPreferences.Add('ID', olText).Value := 'TestID';
newTestId := mailItem.UserPreferences('ID').value

Thanks for your help...

Ian
 

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

Back
Top