TIpMail() > High level methods xHarbour Developers Network  

oTIpMail:detachFile()

Stores an attached a file to disk.

Syntax

:detachFile( [<cPath>] ) --> lSuccess

Arguments

<cPath>
This is a character string holding the directory of the local station where to store the attached file. If <cPath> is omitted, the file is stored in the currect directory.

Description

Method :detachFile() retrieves the contents of a file attached to an incoming mail and stores it in the specified directory on the local station. The file name is retrieved with method :getFileName() which extracts the file name from the mail header field of a multipart mail message.


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