Internet Direct (Indy) Version 9.0.1 Beta
TIdAttachment.FileName
File name used to the store the attachment.

property FileName: TFileName;
Description
FileName is a String property that represents the file name where the message part is stored. FileName contains the parameter value from the Internet Message header "Content-Dispositon: attachment; filename=".

Set FileIsTempFile to True to indicate that the file should be deleted when the attachment is freed in Destroy.