JVCL Help:TJvMail.Attachment

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

Search in JVCL Help

 
Search in all projects
 

Summary

Lists the filenames of attachments for the current message.


Pascal

 propertyAttachment: TStrings;


Description

Use Attachment before calling SendMail to add, insert, delete and move filenames of attachments for the to be send message. The number of attachments per message can be limited in some messaging systems. If the limit is exceeded, an EJclMapiError exception is raised when SendMail is called. File attachments are copied to the message before SendMail returns; thus, later changes to the files do not affect the contents of the message. The files must be closed when they are copied.
After calling ReadMail use Attachment to retrieve the filenames of temporary files where to file attachments are saved.
Attachment is of type TStrings. Use this type to access its methods or properties to manipulate the filenames in the attachment list.
To send an attachment using a different file name, insert a null char (#0) between physical and virtual file names (ie: 'c:pathphysical name.ext'#0'virtualfilename.txt')


See Also

TJvMail.SendMail


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