PHP Manual: imap_append
imap_append
Description
bool imap_append ( resource imap_stream, string mailbox, string message [, string options] )
Appends a string message to the specified mailbox.
Parameters
imap_streamAn IMAP stream returned by imap_open().
mailboxThe mailbox name, see imap_open() for more information
messageThe message to be append, as a string
When talking to the Cyrus IMAP server, you must use "\r\n" as your end-of-line terminator instead of "\n" or the operation will fail
optionsIf provided, the
optionswill also be written to themailbox
Examples