|
AddMail()
Enterprise Edition Only
Adds an email message to the emails to be sent
queue.
Syntax
AddMail(<acTo>,
<cSubject>, [<cMsg>], [<acAttach>],
[<acCC>], [<acBCC>]) --> nMessageCount
Arguments
<acTo> --> The email address to send the
message to or a one dimensional array containing the list of
names.
<cSubject> --> The subject name of the
message
<cMsg> --> The body message
contents.
<acAttach> --> The file attachment or a
one dimensional array containing the list of file attachments. The
file name should include the full path of each attached file.
<acCC> --> The carbon copy address or a
one dimensional array containing a list of carbon copy
addresses.
<aBCC> --> The blind carbon copy address
or a one dimensional array containing a list of blind carbon copy
addresses.
Returns
The function returns the number of messages in
the email message queue. If the system was unable to add a message
to the queue the return value becomes zero.
Description
This function adds an email message to the email
send queue. Use the
SendMail()
function to email all messages pending in the queue.
Examples
* Send one
message
AddMail("me@mydomain.com.au", "The subject", "The
Message")
SendMail()
* Send two
messages
Declare MessageList
Type Array
MessageList := {
"me@mydomain.com.au", "me2@mydomain.com.au")
AddMail(MessageList,
"The Subject", "The Message")
SendMail()
____________________________
Related Topics
Business
Function List
SendMail()
SendHTMLMail()
|