If the mailbox does not exist, the method will fail. To create a
new mailbox, use the CreateMailbox method. If the message is
created in the mailbox that is currently selected, the server may
flag it as recent.
This method is typically used by applications to store messages
which have already been sent to a user. After a message has been
delivered using the SMTP protocol, that same message may be created
in a mailbox on the IMAP server so that the user has access to those
messages.
If the Unicode version of this method is called and the
dwMessageSize parameter is zero, the lpMessage parameter
must point to a wide string terminated with a null character. The
string will be automatically converted to UTF-8 when the message is
created. In all other cases, the lpMessage parameter is treated
as a pointer to a byte array which contains the message contents and
the dwMessageSize parameter specifies the number of bytes in
the array.