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.

Checks if the file was modified since it has been loaded. (Previous) Open the mbox file (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.