procedure LoadFromFile(const FileName: string);
Description
Loads the attachment content from a file specified in the FileName parameter.
When the PathName property is set, the data is copied to the file specified in the PathName property. Otherwise, the data is loaded to a TMemoryStream object that stores the attachment content.
See Also