A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Custom Mail Fields



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 30th 06, 08:55 AM posted to microsoft.public.outlook.program_vba
Ian Mackenzie
external usenet poster
 
Posts: 10
Default Custom Mail Fields

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


Ads
  #2  
Old March 30th 06, 03:29 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Custom Mail Fields

Use the Add method of the UserProperties collection.

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


"Ian Mackenzie" wrote in message
...
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


  #3  
Old March 31st 06, 02:50 PM posted to microsoft.public.outlook.program_vba
Ian Mackenzie
external usenet poster
 
Posts: 10
Default Custom Mail Fields

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


"Ken Slovak - [MVP - Outlook]" wrote in message
...
Use the Add method of the UserProperties collection.

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


"Ian Mackenzie" wrote in message
...
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




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
search custom fields student of science Outlook - Using Forms 2 March 22nd 06 04:28 PM
How do I map custom fields effectively? George Kirby Outlook - Using Forms 1 March 9th 06 12:28 PM
Fields on custom forms are not kept after message is sent Sue Mosher [MVP-Outlook] Outlook - Using Forms 2 February 6th 06 10:06 PM
Custom Task Fields Milly Staples [MVP - Outlook] Outlook - General Queries 0 January 7th 06 06:07 PM


All times are GMT +1. The time now is 07:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.