Microsoft KB Archive/173851

= PRB: Simple MAPI Messages Appear Incorrectly in Some Clients =

Article ID: 173851

Article Last Modified on 8/18/2005

-

APPLIES TO


 * Simple Messaging Application Programming Interface (MAPI)

-



This article was previously published under Q173851



SYMPTOMS
When viewing a message in the Netscape Navigator mail client, one or more of the following may be true:
 * Attachments were added to the message when it was sent, but the message does not appear as if it has attachments; the attachments come through as only text within the message.
 * No attachments were added to the message before sending, but an attachment that seems to contain message header information appears on the message.

However, when the same message is viewed in the Microsoft Windows Messaging client, Microsoft Exchange, or Microsoft Outlook, it appears as desired.



CAUSE
The message is being sent to a one-off address, and MAPIResolveName was not called. (One-off addresses are used to send messages to recipients that do not have a corresponding entry in any of the session's address book containers.)



RESOLUTION
Before sending the message, call MAPIResolveName to force the one-off address to be resolved by MAPI.



MORE INFORMATION
You can specify addresses that are not in the address book with the following format:

Display name[Address type:E-mail address]

There are six components to this format:
 * 1) Display name (Optional) -- If not present, MAPIResolveName uses the visible part of the e-mail address as the display name. May include blanks.
 * 2) [ (Required) -- Delineates the start of the type and address information.
 * 3) ] (Required) -- Delineates the end of the type and address information. If anything other than white space follows this character, the entry is not treated as a custom recipient.
 * 4) Address type (Required) -- Type of address; maps to a specific address format (such as SMTP or FAX).
 * : (Required) -- Separates the address type from the e-mail address.
 * 1) E-mail address (Required) -- Address of the recipient. May include blanks.

