Difference between revisions of "MAILATTACH()"

From Lianjapedia
Jump to: navigation, search
Line 13: Line 13:
 
{| class="wikitable" width="100%"
 
{| class="wikitable" width="100%"
 
!Parameters||Required||Default||Description
 
!Parameters||Required||Default||Description
|-
 
|valign="top"|<expN>||valign="top"|Yes||valign="top"|None||Numeric value specifying the mail message to read
 
 
|-
 
|-
 
|valign="top"|<expC>||valign="top"|Yes||valign="top"|None||The name of the file to be created to contain the attachment
 
|valign="top"|<expC>||valign="top"|Yes||valign="top"|None||The name of the file to be created to contain the attachment
 +
|-
 +
|valign="top"|<expN>||valign="top"|Yes||valign="top"|None||Numeric value specifying the mail message to read
 
|-
 
|-
 
|}
 
|}

Revision as of 05:34, 30 April 2013

Purpose

Function to save a mail message attachment to a file

Syntax

MAILATTACH(<expN>, <expC>)

See Also

CLOSEMAIL(), COUNTMAIL(), DELETEMAIL(), MAILCLOSE(), MAILCOUNT(), MAILDELETE(), MAILERROR(), MAILHEADER(), MAILNODENAME(), MAILOPEN(), MAILREAD(), MAILSAVEAS(), MAILSEND(), MAILUSERNAME(), OPENMAIL(), READMAIL(), SENDMAIL()

Description

The MAILATTACH() function saves the attachment from the specified mail message, <expN>, to the file named in <expC>. MAILATTACH() returns .T. (true) if the attachment is saved successfully and .F. (false) otherwise.

Parameters Required Default Description
<expC> Yes None The name of the file to be created to contain the attachment
<expN> Yes None Numeric value specifying the mail message to read

Example

if mailattach(1, "mailattach.zip")
    ! unzip mailattach.zp
else
    ? "Mail attachment could not be saved."
endif