imap_createmailbox

PHP 4, PHP 5, PHP 7, PHP 8
imap_createmailbox - Create a new mailbox
Manual
Code Examples

imap_createmailbox( IMAP\Connection$imap, string$mailbox ): bool

Creates a new mailbox specified by mailbox.

Parameters

imap

An IMAP\Connection instance.

mailbox

The mailbox name, see imap_open for more information. Names containing international characters should be encoded by imap_utf7_encode

Warning:

Passing untrusted data to this parameter is insecure, unless imap.enable_insecure_rsh is disabled.

Return Values

Returns true on success or false on failure.

Changelog

Version Description
8.1.0 The imap parameter expects an IMAP\Connection instance now; previously, a resource was expected.

Related Functions

Example of imap_createmailbox

Show all examples for imap_createmailbox

PHP Version:


Function imap_createmailbox:

IMAP, POP3 and NNTP Functions

Most used PHP functions