Redemption and OL2003

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

Dmitry Streblechenko \(MVP\)

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
 
J

John Cranston

There is not PR_DISPLAY_NAME property. There is a PR_DISPLAY_TO, but that
is blank.
 
J

John Cranston

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
 
J

John Cranston

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
 
D

Dmitry Streblechenko \(MVP\)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top