Error Messages, MAPI Controls

The following table lists the trappable errors for the MAPI controls.

Constant Value Description
mapSuccessSuccess 32000 Action returned successfully
mapUserAbort 32001 User canceled process
The current action was not completed because the user canceled the process.
mapFailure 32002 Unspecified failure has occurred
An unspecified error occurred during the current action. For example, the action was unable to delete or address mail correctly.
mapLoginFail 32003 Login has failed
There was no default logon, and the user failed to log on correctly.
mapDiskFull 32004 Disk is full
The disk is full. The current action could not create a disk file.
mapInsufficientMem 32005 Insufficient memory
There is insufficient memory to proceed with the current action.
mapAccessDenied 32006 Access denied.
mapGeneralFailure 32007 General Failure.
This is an unspecified error.
mapTooManySessions 32008 Too many sessions
The user has too many sessions open at once.
mapTooManyFiles 32009 Too many files
Too many file attachments are contained in the message. The mail wasn't sent or read.
mapTooManyRecipients 32010 Too many recipients
There are too many message recipients specified. Mail wasn't sent or read.
mapAttachmentNotFound 32011 Attachment not found
The specified attachment wasn't found, and mail wasn't sent.
mapAttachmentOpenFailure 32012 Failure on opening attachment
The attachment couldn't be located. Mail wasn't sent. Verify that the AttachmentPathName property is valid.
mapAttachmentWriteFailure 32013 Failure attempting to write an attachment
An attachment could not be written to a temporary file. Check directory permissions.
mapUnknownRecipient 32014 Unknown recipient
The recipient doesn't appear in the address list. Mail wasn't sent.
mapBadRecipType 32015 Invalid recipient type
The type of recipient was incorrect. Valid type values are 1 (primary recipient), 2 (copy recipient), and 3 (blind copy recipient).
mapNoMessages 32016 No messages
Unable to find the next message.
mapInvalidMessage 32017 Invalid message
An invalid message ID was used. The current action was not completed.
mapTextTooLarge 32018 Text is too large
The text in the message was too large to send. The mail wasn't sent. Text is limited to 32K.
mapInvalidSession 32019 Invalid session
An invalid session ID was used. To associate the MAPI messages control with a valid messaging session, set the SessionID property to the MAPI session control's SessionID.
mapTypeNotSupported 32020 Type not supported
mapAmbiguousRecipient 32021 Ambiguous recipient
One or more recipient addresses are invalid. Make sure the addresses for the RecipAddress property are valid.
mapMessageInUse 32022 Message in use
mapNetworkFailure 32023 Network failure
mapInvalidEditFields 32024 Invalid editfields
The value of the AddressEditFieldCount property is invalid. Valid values are from 0 to 4.
mapInvalidRecips 32025 Invalid Recipients
One or more recipient addresses are invalid. Make sure the addresses for the RecipAddress property are valid.
mapNotSupported 32026 Not supported
The current action is not supported by the underlying mail system.
mapSessionExist 32050 Logon failure: valid session ID already exists
The MAPI messages control is already using a valid session ID.
mapInvalidBuffer 32051 Property is read only when not using Compose Buffer. Set MsgIndex = –1
mapInvalidReadBufferAction 32052 Action only valid for Compose Buffer. Set MsgIndex = –1
mapNoSession 32053 MAPI Failure: valid session ID does not exist
The MAPI messages control does not have a valid session handle from the MAPI session control.
mapInvalidRecipient 32054 No originator in the Compose Buffer
You cannot see message originator information while in the Compose Buffer (MsgIndex set to –1).
mapInvalidComposeBufferAction 32055 Action not valid for Compose Buffer
The attempted action is not valid in the Compose Buffer (MsgIndex set to –1)
mapControlFailure 32056 Cannot perform action, no messages in list
mapNoRecipients 32057 Cannot perform action, no recipients
mapNoAttachment 32058 Cannot perform action, no attachments