Platform SDK: MAPI |
It is slightly more complex to receive messages with CMC than to send messages.
To receive a message
There are a number of ways you can invoke the cmc_list function in order to control the sorts of messages listed by the API. For example, you can pass in the string "CMC: NDR" in the message_type parameter to obtain a list of nondelivery reports, or you can include the CMC_LIST_UNREAD_ONLY flag in the list_flags parameter to obtain a list of unread messages.