Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / March 2006

Tip: Looking for answers? Try searching our database.

Custom Mail Fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ian Mackenzie - 30 Mar 2006 08:55 GMT
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
Ken Slovak - [MVP - Outlook] - 30 Mar 2006 15:29 GMT
Use the Add method of the UserProperties collection.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi Guys
>
[quoted text clipped - 6 lines]
>
> Ian
Ian Mackenzie - 31 Mar 2006 14:50 GMT
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

> Use the Add method of the UserProperties collection.
>
[quoted text clipped - 8 lines]
>>
>> Ian
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.