Difference between revisions of "MAILATTACH()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) m (Reverted edits by Helen.george (talk) to last revision by Yvonne.milne) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to save a mail message attachment to a file | Function to save a mail message attachment to a file | ||
− | |||
==Syntax== | ==Syntax== | ||
MAILATTACH(<expN>, <expC>) | MAILATTACH(<expN>, <expC>) | ||
− | |||
==See Also== | ==See Also== | ||
[[CLOSEMAIL()]], [[COUNTMAIL()]], [[DELETEMAIL()]], [[MAILCLOSE()]], [[MAILCOUNT()]], [[MAILDELETE()]], [[MAILERROR()]], [[MAILHEADER()]], [[MAILNODENAME()]], [[MAILOPEN()]], [[MAILREAD()]], [[MAILSAVEAS()]], [[MAILSEND()]], [[MAILUSERNAME()]], [[OPENMAIL()]], [[READMAIL()]], [[SENDMAIL()]] | [[CLOSEMAIL()]], [[COUNTMAIL()]], [[DELETEMAIL()]], [[MAILCLOSE()]], [[MAILCOUNT()]], [[MAILDELETE()]], [[MAILERROR()]], [[MAILHEADER()]], [[MAILNODENAME()]], [[MAILOPEN()]], [[MAILREAD()]], [[MAILSAVEAS()]], [[MAILSEND()]], [[MAILUSERNAME()]], [[OPENMAIL()]], [[READMAIL()]], [[SENDMAIL()]] | ||
− | |||
==Description== | ==Description== | ||
Line 22: | Line 19: | ||
|- | |- | ||
|} | |} | ||
− | |||
==Example== | ==Example== | ||
Line 33: | Line 29: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
[[Category:Mail Functions]] | [[Category:Mail Functions]] |
Latest revision as of 06:25, 30 April 2013
Contents
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 |
---|---|---|---|
<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 attachment |
Example
if mailattach(1, "mailattach.zip") ! unzip mailattach.zp else ? "Mail attachment could not be saved." endif