Mail_Mbox::insert()

Mail_Mbox::insert()  -- Insert a message

Synopsis

require_once '/Mbox.php';

mixed Mail_Mbox::insert (string $content, mixed [$offset = NULL])

Description

Mail_Mbox will insert the message according its offset. (Remember: message 3 is the forth message). The default is inserting it AFTER the last message (offset = null).

Note: Mail_Mbox automatically adds \n\n at end of the message

Parameter

string $content

The content of the new message

mixed $offset

Return value

returns Return true else PEAR_Error object.