Changing 'To' field in message lists to show SMTP address only.

Not open for further replies.
Outlook version
Email Account
Can I refer to: ?

The "Sender's email address" section in that link works very well and has been used by me for about a year (XP Pro, Outlook 2007, Hotmail Connector).

Externsive searching, and also a long, current thread here , have so far produced no result for the following request:

Cause Outlook message lists to display alternative To, CC, BCC and 'Have replies sent to' (ie Reply-to) fields, these alternatives showing not the Display Name provided by the default fields but the plain SMTP address.

In other words I need a script equivalent to the Sender's Email Address script above, for filing as a .cfg file, which will do the same job but for the other fields mentioned.

Any input on this will be very welcome indeed!

William Lambton,

I believe i asked my expert (a fellow , Michael from CodeTwo) about this before and got a 'no' but will need to look it up. If the mail is internal Exchange, it definately will not work, but might be possible for POP/SMTP.

My expert gave me these instructions for created the CFG:

All you need to have to create a new field in a form is:

1. A sample CFG file. You can take EXTENDED-PROPERTIES.CFG from or NOTE.CFG from C:\Program Files\Microsoft Office\Office12\FORMS\xxxx\

2. OutlookSpy or MFCMAPI to check MAPI tags of properties.

Here is how to add Internet Message ID which you can find in EXTENDED-PROPERTIES.CFG.

First you need to find the property (field) you are looking for in OutlookSpy and read its "Tag num". It is 0x1035001E for the Internet MessageID field.

Now you edit the CFG file. In the [Properties] section add a new Property<XX>=<property name>. <XX> is a next number relative to other PropertyXX entries already existing in the [Proeprties] section. <property name> is the name of a property. It might be anything, it is used as a reference in CFG only.



Next, add a new section [Property.<property name>] that describes the property. Sample:





DisplayName=Internet Message ID

First about "Tag num" 0x1035001E. It consists of two hex parts:

1035 - property ID

001E - property type, here string

Type field from the example above contains the property type but in decimal form 001E hex == 30 dec.

;PropTag=PR_INTERNET_MESSAGE_ID is commented out and it contains MAPI constant for this property (as seen in OutlookSpy), it is for reference only.

NmidInteger contains the property ID in hex.

DisplayName is the display name of property, it will be the display name of the field in Outlook. I noticed that sometimes Outlook changes this name in a view.

That's all, now you can install the form (CFG) in Outlook and use the new field. The install instructions are here

The above regards "constant" MAPI properties, which always have the same "Tag num" on every computer. There are also "named" MAPI properties which are identified by their Tag, Namespace and Type. I didn't define them in CFG so far. I suppose that additionally to NmidInteger you would need to use also NmidPropset, which you can also read in OutlookSpy.

Here is some documentation on CFG format:

You can use MFCMAPI to look up the prop id for the fields you want to expose and try creating your own cfg.
This modified CFG get the received by address and the reply to address. The CC addresses are not an exposed mapi property. You can add the message header field too, but its less than useful because of the field size. It does show the return path field tho (when present) because its the first in the header. Also, BCC fields are not available on incoming emai.






Comment=Contains fields that are not available in Outlook by default

























DisplayName=Received By





DisplayName=Reply to





DisplayName=Message Headers





DisplayName=Internet Message ID














Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
C Changing Domain -- Assigned To User field Migration? BCM (Business Contact Manager) 1
J Calendar events created on iPhone automatically changing default alert from 'None' to 'Time of Event' Using accounts in Outlook 0
F Auto changing email subject line in bulk Using Outlook 2
K Changing the Deleted Items location in Outlook 2019 Using Outlook 2
MattC Changing the font of an email with VBA Outlook VBA and Custom Forms 1
V Outlook 2021 Can anyone explain why my Outlook views keep changing?! Using Outlook 2
wayneame Changing the Form Used by Existing Task Items in a Folder Outlook VBA and Custom Forms 4
S Changing Message Class Outlook VBA and Custom Forms 4
C Pop Server Changing Verizon/Aol to Yahoo Using Outlook 6
P Outlook tasks keeps changing (updating) dates that I type Using Outlook 2
e_a_g_l_e_p_i Changing where data .pst is saved to Using Outlook 3
P Changing the font that the task view shows Using Outlook 5
S Changing colors of today's appointments, but not recurring ones Using Outlook 33
T Changing Sent Items location in Outlook 2019 Using Outlook 0
E Outlook view grouping keeps changing Using Outlook 3
B BCC issues after changing root folder path for gmail Using Outlook 1
M Changing the preferred order for "Put this entry in" list for adding new contacts to the Address Book Using Outlook 1
J Outlook 2010 Changing events in Outlook calendar via opening file, importing CSV Using Outlook 0
A .restrict results changing after moving to Exchange online Outlook VBA and Custom Forms 0
T Outlook Contacts ... Changing Font Size, Style, Bold, etc. Using Outlook 2
N Rule for "on behalf of" - with changing names Using Outlook 2
O Save attachments using hotkey without changing attributes Outlook VBA and Custom Forms 1
M Outlook 2016: Changing default font for Notes and Reading Pane Using Outlook 4
V Changing default date for task follow-up buttons Using Outlook 2
Gary Hile Outlook 2016 changing editor options Using Outlook 6
J Outlook Rules - Changing auto-submit address in multiple rules, according to rule name Outlook VBA and Custom Forms 0
S Problems syncing emails with webmail after changing to Outlook 2016 Using Outlook 1
T Changing default Mail Account in Outlook 2016 - POP3 Using Outlook 1
S Changing notification sound for new incoming messages in Outlook 365/2016 Using Outlook 1
Stephen Weinberg Changing the mailing address checkbox Using Outlook 0
D Outlook 2013 changing iCloud reminder time? Using Outlook 0
C Changing the name of Outlook Messages saved to a folder Using Outlook 1
A changing appointments Using Outlook 8
B Changing CC list to .add Outlook VBA and Custom Forms 2
Diane Poremsky Changing the Message Size in Exchange Server Using Outlook 0
R changing FW: on forward Outlook VBA and Custom Forms 3
B changing Win7 default backup schedule for Previous Versions Using Outlook 0
Diane Poremsky Changing the default *.pst and *.ost sizes Using Outlook 0
P Message Class keeps changing back to IPM.Contact Outlook VBA and Custom Forms 2
C Macro to send email after changing from address and adding signature Outlook VBA and Custom Forms 1
Diane Poremsky Changing color schemes Using Outlook 0
R Outlook calendar appointments Free/Busy time is changing from "Busy" to "Free" Using Outlook 2
W Changing looks of emails in Outlook 2003 Using Outlook 0
L Office 365 Outlook changing default contact folder Using Outlook 0
Diane Poremsky Changing the From Domain in Office 365 Using Outlook 0
R The changing way to access information in Office 365 Using Outlook 0
N Creating or changing the main new mail message template in Outlook 2010 Using Outlook 2
T issue changing [Type] in dbo.ContactMainTable/ contacts seem to be deleted BCM (Business Contact Manager) 5
William Yeack Outlook/Exchange - Changing display of “From” user Using Outlook 3
divan VbaProject: Changing email format Using Outlook 15

Similar threads