Mailtraq - the Complete Email Server

Enstar for Mailtraq email server sales & support
Making world-class Internet technology affordable  

Search for:

Advanced search


Creates a new message and sends it from the specified sender to the specified recipient(s). The content parameter represents the expression to execute in the context of the new message. In other words, when the content is executed, the 'current message' points to the newly created message, prior to it being delivered. The result from the expression is the text of the new message.

PostMessage( sender , rcpts , content )

The address to place in the message envelope's sender field
A comma separated list of recipient address(es)
The expression to be executed in the context of the new message, i.e. the headers and message body.

Returns a message to the sender of the trigger message indicating that the e-mail address they specified was not found

PostMessage("postmaster", MsgGetSender(),
    SetHeader("Subject", "Address Unavailable" ),
    MsgAddLine("\nThe address you specified was not found."),
    MsgAddLine("Your original message is quoted below:"),
    MsgAddLine("-- "),


When composing new messages with this function, it is the responsibility of the script writer to format the message correctly. In particular, note that RFC2822 message format require a blank line to delimit the headers of a message from the message body.

Mailtraq Highlights...
 SMTP Server     Mailtraq SMTP email server video IMAP Server     Mailtraq IMAP email Server video
 POP3 Server     Mailtraq POP3 email server video Proxy Server     Mailtraq proxy email server video
 Webmail Server     Mailtraq webmail email server video Mailing-list Server     Mailing list email server video
 Groupware Services     Mailtraq groupware email services video Spam and Virus control     Spam and virus control email server video


   Copyright © 2003 - 2011 Enstar Ltd, Enstar LLC & Fastraq Ltd. All rights reserved. Privacy policy.
   Mailtraq® is a registered trademark of Fastraq Limited.