imap_subscribe

(PHP 4, PHP 5, PHP 7)

imap_subscribeSubscribe to a mailbox

Descrição

imap_subscribe ( resource $imap_stream , string $mailbox ) : bool

Subscribe to a new mailbox.

Parâmetros

imap_stream

Um stream IMAP retornado por imap_open().

mailbox

The mailbox name, see imap_open() for more information

Aviso

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

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em caso de falha.

Veja Também