Creates a new mailbox on the server.
Syntax
object.CreateMailbox( MailboxName )
Remarks
The CreateMailbox method creates a new mailbox on the
server. The following is a description of the arguments that may be
passed to the method:
- MailboxName
- A string which specifies the name of the new mailbox to be
created.
If the mailbox name is suffixed with the server's hierarchy
delimiter, this indicates to the server that the client intends to
create mailbox names under the specified name in the hierarchy. If
superior hierarchical names are specified in the mailbox name, then
the server may automatically create them as needed. For example, if
the mailbox name "Mail/Office/Projects" is specified and
"Mail/Office" does not exist, it may be automatically created by
the server.
The special mailbox name INBOX is reserved, and cannot be
created. It is recommended that mailbox names only consist of
printable ASCII characters, and the special characters "*" and "%"
should be avoided.
Return Value
A value of zero is returned if the method was successful.
Otherwise, a non-zero error code is returned which indicates the
cause of the failure.
See Also
CheckMailbox Method, DeleteMailbox Method, SelectMailbox Method
|