Article ID: 171671
Article Last Modified on 5/9/2005
Dim objAddress As Mapi.AddressEntry
Set objAddress = objRecip.AddressEntry
objAddress.Fields(ActMsgPR_SEND_RICH_INFO) = False
objAddress.Update
objRecip.AddressEntry = objAddress
' Note: This code requires a reference to CDO (1.1, 1.2, 1.21)
Dim objSession As Session
Dim objMessage As Mapi.Message
Dim objRecip As Mapi.Recipient
Dim objAddress As Mapi.AddressEntry
' Create and logon to a MAPI Session
Set objSession = CreateObject("Mapi.Session")
objSession.Logon ShowDialog:=True
' Create a new message
Set objMessage = objSession.Outbox.Messages.Add
' Create a new recipient on our message
Set objRecip = objMessage.Recipients.Add
' Set the properties of our recipient and resolve to a single address
objRecip.Name = "myemail@mycompany.com"
objRecip.Type = CdoTo
objRecip.Resolve
' *** To make this code function as needed, replace this section
' *** of code with the corrected code provided in the Resolution
' *** section above.
' Attempt to set the PR_SEND_RICH_INFO property.
' This is the line of code that may need to change, depending on the
' default setting on your system.
objRecip.AddressEntry.Fields(ActMsgPR_SEND_RICH_INFO) = False
' Update the AddressEntry object
objRecip.AddressEntry.Update
' View the details of the Recipient to confirm changes
objRecip.AddressEntry.Details
' Delete the message and Logoff the Session
objMessage.Delete
objSession.Logoff
Keywords: kbmsg kbprb kbcode KB171671