TIpMail() > High level methods xHarbour Developers Network  

oTIpMail:attachFile()

Attaches a file to an eMail.

Syntax

:attachFile( <cFileName> ) --> lSuccess

Arguments

<cFileName>
This is a character string holding the name of the file to attach to the eMail. It must include path and file extension. If the path is omitted from <cFileName>, the file is searched in the current directory.

Description

Method :attachFile() attaches a local file to an outgoing eMail. The return value is .T. (true) when the file is attached, otherwise .F. (false) is returned.

The method determines the MIME type of the file and creates a multipart mail message with the file contents encoded base64.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe