Hi,
When $mailbox string ends with '/' it doesn't subscribe and doesn't return any error. You need to rtrim this character.
(PHP 4, PHP 5, PHP 7, PHP 8)
imap_subscribe — Subscribe to a mailbox
Subscribe to a new mailbox.
imap
An IMAP\Connection instance.
mailbox
The mailbox name, see imap_open() for more information
El paso de datos no confiables a este parámetro es inseguro, a menos que imap.enable_insecure_rsh esté inhabilitado.
Versión | Descripción |
---|---|
8.1.0 |
The imap parameter expects an IMAP\Connection
instance now; previously, a valid imap recurso was expected.
|