Redemption and OL2003

  • Thread starter Thread starter John Cranston
  • Start date Start date
J

John Cranston

I am using the SafeMailItem from a VFP application and when we send the
mail, the display name is empty. This didn't happen under OL2002, 2000,
etc...

The address is resolved, but Outlook displays no name on the sent message.

I even tried running the sample e-mail send code from the Redemption
website, and got the same result.
 
What is your code? If you look at the message using OutlookSpy (click
IMessage, go to the GetRecipientTable tab), do you see the PR_DISPLAY_NAME
property for each recipient?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
There is not PR_DISPLAY_NAME property. There is a PR_DISPLAY_TO, but that
is blank.
 
I found the PR_DISPLAY property and it is NULL.

Dmitry Streblechenko (MVP) said:
What is your code? If you look at the message using OutlookSpy (click
IMessage, go to the GetRecipientTable tab), do you see the PR_DISPLAY_NAME
property for each recipient?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
The PR_DISPLAY_NAME is blank (actually Null).

Here is a simple program I wrote for testing. This is only a problem for
addresses that are not in my Outlook Address Books. If the address resolves
to one of the contacts, the display name is fine. I am pretty sure the
problem lies in Outlook 2003, since this same code works on Outlook 2000 and
2002 (XP).

New = CreateObject('Redemption.SafeMailItem')
OlApp = CreateObject('Outlook.Application')

Session = olApp.GetNameSpace('MAPI')
Session.Logon('Outlook')

loFolder = Session.GetDefaultFolder(16)
loNew = loFolder.Items.Add(0)

New.Item = loNew
New.Body = 'Testing 1.. 2.. 3..'
New.Subject = 'New Subject'

Sendto = New.Recipients.Add('(e-mail address removed)')
Sendto.Type = 1

New.Recipients.ResolveAll
New.Send
 
I cannot reproduce this. What if you change the line
New.Send
to
New.Save
and look at the message in the Drafts folder? Do you have an executable that
manifests the problem?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top