Example: imap_append
In the following example, the imap_append function appends the contents the file mynote.dat as a mail message to the Sent Mail mailbox, and marks it as read (\Seen).
imap_append("AddToSentMail", "MessageFile=mynote1.dat", "Mailbox=Sent Mail", "Flags=\Seen", ENDITEM, LAST );