JVCL Help:TJvMail.ReadMail

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Retrieves a message for reading.


Pascal

 procedureReadMail;


Description

Call ReadMail to retrieve one message, copying the message content into the properties and classes as used in the SendMail function. ReadMail will fill the following properties:

Use ReadOptions to customize the message retrieving behavior. For example you can specify that only envelope information is to be returned from the call or specify whether the message is marked as sent or unsent.
Before calling ReadMail, use the FindFirstMail and FindNextMail functions to verify that the message to be read is the one you want to be read. FindFirstMail and FindNextMail fill property SeedMessageID with the ID of the last message found, and that property is subsequently used by ReadMail to identify the message to be read.
Because message identifiers are system-specific and opaque and can be invalidated at any time, ReadMail considers a message identifier to be valid only for the current Simple MAPI session.


See Also

TJvMail.ReadedMail, TJvMail.ReadOptions


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page