Difference between revisions of "CLOSEMAIL()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 31: Line 31:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:Mail]]
 +
[[Category:Mail Functions]]

Revision as of 14:47, 2 June 2009

Class

Mail


Purpose

Function to disconnect from mail server


Syntax

CLOSEMAIL()


See Also

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


Description

The CLOSEMAIL() function will disconnect you from the mail server. If you are not connected to a mail server, it will return an error. You can use the MAILUSERNAME() (POP3 only) or MAILNODENAME() function to check if you are connected.

If successful the CLOSEMAIL() will return .T., otherwise .F.. The MAILERROR() function can be used to return the error message if the CLOSEMAIL() fails.


Example

closemail()


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer