Sending Mail Messages

Sending a message is a simple task, requiring a few lines of code. When a user finishes composing a message and activates the Send command, the application sets flags and the system performs all the necessary actions required to send the message to its destination or destinations. To send a mail message, the application sets the MAIL_STATUS_COMPOSED flag, and sets the MAIL_FOLDER_OUTBOX flag to direct the message to the Outbox folder. The next time a user connects to the service specified on the message, the message is sent.