PHP 8.5.0 Alpha 1 available for testing

imap_subscribe

(PHP 4, PHP 5, PHP 7, PHP 8)

imap_subscribeSuscribe a un buzón de correo

Descripción

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

Suscribe a un buzón de correo.

Parámetros

imap

An IMAP\Connection instance.

mailbox

El nombre del buzón de correo, ver la documentación de la función imap_open() para más detalles

Advertencia

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

Valores devueltos

Esta función retorna true en caso de éxito o false si ocurre un error.

Historial de cambios

Versión Descripción
8.1.0 The imap parameter expects an IMAP\Connection instance now; previously, a valid imap resource was expected.

Ver también

add a note

User Contributed Notes 1 note

up
1
shacky
16 years ago
Hi,
When $mailbox string ends with '/' it doesn't subscribe and doesn't return any error. You need to rtrim this character.
To Top