:GetAttachedFileName()


Class

     aprMIME()

 

Syntax

     :GetAttachFileName( [hMessage] ) -> cFilename

 

Parameters

 

hMessage

Optional. Handle of the message to act on. Provided during :CreateMessage() operation

 

Return

Returns the file name for the attachment to the current message part.

 

Description

The method will first try to get the filename from the Content-Disposition header field. If this field does not exist, it then attempts to get the name from the Content-Type header field. If neither field exists, the method will fail.

 

See Also

:AttachFile(), :AttachFileEx(), :ExportMessage(), :ExtractFile(), :GetMessageHeader()