Internet Direct (Indy) Version 9.0.1 Beta
TIdAttachment.SaveToFile
Stores a message part to a disk file.

function SaveToFile(const FileName: TFileName): Boolean;
Parameters
const FileName: TFileName
File name where the message part will be stored.

Returns
Boolean - True when the message parts is stored.

Description
SaveToFile is a Boolean function used to store the attachment that represents the message part to the file specified in Filename.