Example: imap_append_ex

In the following example, the imap_append_ex 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_ex(&imap1,"AddToSentMail",
            "MessageFile=mynote1.dat",
            "Mailbox=Sent Mail",
            "Flags=\Seen", 
            ENDITEM,
            LAST );