Difference between revisions of "MAILSAVEAS()"

From Lianjapedia
Jump to: navigation, search
 
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to save the body of a mail message to a file
 
Function to save the body of a mail message to a file
 
  
 
==Syntax==
 
==Syntax==
 
MAILSAVEAS(<expN>, <expC>)
 
MAILSAVEAS(<expN>, <expC>)
 
  
 
==See Also==
 
==See Also==
 
[[CLOSEMAIL()]], [[COUNTMAIL()]], [[DELETEMAIL()]], [[MAILATTACH()]], [[MAILCLOSE()]], [[MAILCOUNT()]], [[MAILDELETE()]], [[MAILERROR()]], [[MAILHEADER()]], [[MAILNODENAME()]], [[MAILOPEN()]], [[MAILREAD()]], [[MAILSEND()]], [[MAILUSERNAME()]], [[OPENMAIL()]], [[READMAIL()]], [[SENDMAIL()]]
 
[[CLOSEMAIL()]], [[COUNTMAIL()]], [[DELETEMAIL()]], [[MAILATTACH()]], [[MAILCLOSE()]], [[MAILCOUNT()]], [[MAILDELETE()]], [[MAILERROR()]], [[MAILHEADER()]], [[MAILNODENAME()]], [[MAILOPEN()]], [[MAILREAD()]], [[MAILSEND()]], [[MAILUSERNAME()]], [[OPENMAIL()]], [[READMAIL()]], [[SENDMAIL()]]
 
  
 
==Description==
 
==Description==
 
The MAILSAVEAS() function saves the specified mail message, <expN>, to the file named in <expC>. MAILSAVEAS() returns .T. (true) if the mail message is saved successfully and .F. (false) otherwise.
 
The MAILSAVEAS() function saves the specified mail message, <expN>, to the file named in <expC>. MAILSAVEAS() returns .T. (true) if the mail message is saved successfully and .F. (false) otherwise.
  
{| class="wikitable"
+
{| class="wikitable" width="100%"
!Parameters||Required||Default||Description
+
!width="15%"|Parameters||width="15%"| Required||width="15%"| Default||Description
 
|-
 
|-
|<expN>||Yes||None||Numeric value specifying the mail message to read
+
|valign="top"|<expN>||valign="top"|Yes||valign="top"|None||Numeric value specifying the mail message to read
 
|-
 
|-
|<expC>||Yes||None||The name of the file to be created to contain the lines of the mail message
+
|valign="top"|<expC>||valign="top"|Yes||valign="top"|None||The name of the file to be created to contain the lines of the mail message
 
|-
 
|-
 
|}
 
|}
 
  
 
==Example==
 
==Example==
Line 33: Line 29:
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Mail]]
 
 
[[Category:Mail Functions]]
 
[[Category:Mail Functions]]
 +
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Function Extensions]]

Latest revision as of 05:03, 9 November 2016

Purpose

Function to save the body of a mail message to a file

Syntax

MAILSAVEAS(<expN>, <expC>)

See Also

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

Description

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

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

Example

if mailsaveas(1, "mailmes.txt")
    vi mailmes.txt
else
    ? "Mail message could not be saved."
endif