Difference between revisions of "MAILHEADER()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return specified header information
 
Function to return specified header information
 
  
 
==Syntax==
 
==Syntax==
 
MAILHEADER(<array1>, <expC1>)
 
MAILHEADER(<array1>, <expC1>)
 
  
 
==See Also==
 
==See Also==
 
[[CLOSEMAIL()]], [[COUNTMAIL()]], [[DELETEMAIL()]], [[MAILATTACH()]], [[MAILCLOSE()]], [[MAILCOUNT()]], [[MAILDELETE()]], [[MAILERROR()]], [[MAILNODENAME()]], [[MAILOPEN()]], [[MAILREAD()]], [[MAILSAVEAS()]], [[MAILSEND()]], [[MAILUSERNAME()]], [[OPENMAIL()]], [[READMAIL()]], [[SENDMAIL()]]
 
[[CLOSEMAIL()]], [[COUNTMAIL()]], [[DELETEMAIL()]], [[MAILATTACH()]], [[MAILCLOSE()]], [[MAILCOUNT()]], [[MAILDELETE()]], [[MAILERROR()]], [[MAILNODENAME()]], [[MAILOPEN()]], [[MAILREAD()]], [[MAILSAVEAS()]], [[MAILSEND()]], [[MAILUSERNAME()]], [[OPENMAIL()]], [[READMAIL()]], [[SENDMAIL()]]
 
  
 
==Description==
 
==Description==
 
The MAILHEADER() function will return the specified header information from an array that was already created by MAILREAD().  If you are not connected to a mail server, it will return an error.  You can use the MAILUSERNAME() or MAILNODENAME() function to check if you are connected.
 
The MAILHEADER() function will return the specified header information from an array that was already created by MAILREAD().  If you are not connected to a mail server, it will return an error.  You can use the MAILUSERNAME() or MAILNODENAME() function to check if you are connected.
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 31: Line 27:
 
|-
 
|-
 
|}
 
|}
 
  
 
The MAILERROR() function can be used to return the error message if the MAILHEADER() fails.
 
The MAILERROR() function can be used to return the error message if the MAILHEADER() fails.
 
  
 
==Example==
 
==Example==
Line 45: Line 39:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Mail]]
 
 
[[Category:Mail Functions]]
 
[[Category:Mail Functions]]

Revision as of 09:23, 7 December 2012

Purpose

Function to return specified header information

Syntax

MAILHEADER(<array1>, <expC1>)

See Also

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

Description

The MAILHEADER() function will return the specified header information from an array that was already created by MAILREAD(). If you are not connected to a mail server, it will return an error. You can use the MAILUSERNAME() or MAILNODENAME() function to check if you are connected.

Parameters Required Default Description
<array1> Yes None The name of an array to contain the mail messages read by MAILREAD()
<expC2> Yes None Specify the header information to return from the mail message. This can be any one of the following options:

"RECEIVED" "RETURN-PATH" "MESSAGE-ID" "FROM" "TO" "SUBJECT" "DATE" "STATUS"

The MAILERROR() function can be used to return the error message if the MAILHEADER() fails.

Example

number = mailread(1, "mail_mes")
? number
        30
? mailheader(mail_mes, "FROM")
sales@recital.com