Click or drag to resize

CEmail.SaveAs Method

X#
Decode and save the specified encoded attachment of an e-mail as a local file.

Namespace:  VO
Assembly:  VOInternetClasses (in VOInternetClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD SaveAs(
	cPath,
	cFile,
	n
) AS USUAL CLIPPER
Request Example View Source

Parameters

cPath (Optional)
Type: Usual
The directory in which the file is to be saved. If not specified, the attachment will be saved within the current directory.
cFile (Optional)
Type: Usual
String containing a new file name for the attachment being saved. If not specified, the attachment will be saved under the file name contained in the attachment e-mail header.
n (Optional)
Type: Usual
Number specifying which of the multiple attachments should be decoded and saved as a file. If not specified, the first attachment will be saved.

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.
Remarks
This method decodes the specified encoded attachment and saves it either under the specified or default file name.
See Also