JVCL Help:TJvMail.ReadMail
JVCL Help: TJvMail.ReadMail Method
Search in JVCL Help
Search in all projectsSummary
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:
- Subject, with the message subject.
- Body, with the message body.
- Attachment, with the filenames of temporary files where to file attachments are saved.
- ReadedMail, with the delivery time and the sender.
- Recipient, CarbonCopy and BlindCopy, with the recipients of this message.
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