MapiSetMessageProperty Function

Action

Sets a message property value of a valid MAPI Message.

Include file

Mapi.bdh

Syntax

MapiSetMessageProperty( in hMessage      : number, 
                        in nPropertyID   : number, 
                        in sPropertyValue: string ) : boolean;
Parameter Description
hMessage Valid MAPI Message Handle
nPropertyID

Property ID that should be retrieved:

  • MAPI_PROP_MSG_SUBJECT
  • MAPI_PROP_MSG_NOTETEXT
  • MAPI_PROP_MSG_MSGTYPE
  • MAPI_PROP_MSG_DATERECEIVED
  • MAPI_PROP_MSG_CONVERSATIONID
  • MAPI_PROP_MSG_SENDER_NAME
  • MAPI_PROP_MSG_SENDER_ADDRESS
  • MAPI_PROP_MSG_RECIPIENT_COUNT
  • MAPI_PROP_MSG_ATTACH_COUNT
sPropertyValue New property value

Return value

  • true if successful
  • false otherwise

Example

See MAPI Sample