MAPI (Messaging Application Programming Interface) handles pending messages in the following ways:
1. Queuing: MAPI queues the messages that are not yet delivered to the recipient. This allows the messages to be sent in the order in which they were received.
1. Retries: MAPI automatically retries sending the messages that were not successfully delivered. The retry attempts are done at regular intervals until the message is successfully delivered or a certain number of attempts fail.
1. Error handling: In case of delivery failures, MAPI provides detailed error codes and error messages that help to identify the issue and take corrective actions.
1. Throttling: In case of high message volumes, MAPI can throttle the rate of message delivery to prevent performance degradation or service disruptions.
Overall, MAPI provides a reliable and efficient mechanism for handling pending messages to ensure that they are delivered in a timely and consistent manner.