Mailtraq - the Complete Email Server
   

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

Search for:

Advanced search

MsgAddLine()

Adds a line to the end of the current message. This function is identical to the MsgInsertLine() function except that the index is implicitly the value returned by the MsgGetLineCount() function.

MsgAddLine( string )

string
The text of the line to be added to the message
// Add a signature to the end of the current message

sig_file := OpenFile("sig-john.txt"); While(Not(EOF(sig_file)), MsgAddLine(Read(sig_file)) ); CloseFile(sig_file)
// Multiple lines may be added simultaneously 
// using the "\n" escape.
MsgAddline("\nThis is line one.\nThis is line two")

Note

When composing new messages with this function in conjunction with the PostMesssage() function, it is the responsibility of the script writer to format the message correctly. In particular, note that RFC2822 messages require a blank line to delimit the headers of a message from its message body as shown in the above example.

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.