Receiving Mail
Mail can be received in the following way (must be initialized first):
- Open the mailbox with incoming mail using the MailOpenInBoxfunction.
- The MailBoxLoadfunction will load/view the mailbox contents and write incoming e-mail to the special database tables. The list of incoming e-mail can be displayed and ordered using common database operations.
- The text of the selected letter (and/or the text of the header) can be stored in the database using the MailBoxGetMsgorMailBoxGetMsgExfunctions (if it was not previously loaded using theMailBoxLoadfunction).
- Attachments (if they were not previously loaded using the MailBoxLoadfunction) can be stored in the database by theMailBoxGetFilInfofunction.
- The MailBoxSaveFileAsfunction saves a specified mail attachment to disk. TheMailBoxSaveFileDBsfunction (orMailBoxSaveFileDBr) saves the specified file attachment into the database.
- E-mail that is no longer needed can be deleted using the MailBoxDeleteMsgfunction.
- The mailbox can be closed using the MailCloseInBoxfunction.
The functions for receiving e-mail that work with system tables (e.g. MailBoxLoad, MailBoxGetFilInfo, MailBoxGetMsgEx, MailBoxGetMsg, MailBoxSaveFileDBs, and MailBoxSaveFileDBr) cause a transaction to auto-commit.
List of topics: