Mail_Mbox::insert() – Insert a message


require_once '/Mbox.php';

mixed Mail_Mbox::insert ( string $content , mixed $offset = null )


Mail_Mbox will insert the message according to the specified offset. (Remember: message 3 is the fourth message). The default is to insert the message AFTER the last message (offset = null).

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


string $content

The content of the new message.

mixed $offset

Return value

returns Return true or the PEAR_Error object on failure.

Mail_Mbox::hasBeenModified (Previous) Mail_Mbox::open (Next)
Last updated: Tue, 02 Jun 2009 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.