mercredi 28 octobre 2015

PHP Imap - Character not allowed in mailbox name: '.'

I try to move an email from Drafts to Sent directory.

I use the imap_mail_move method :

imap_mail_move($imapStream, $mailId, $mailBox, CP_UID);

$imapStream is the imap stream of Drafts directory

$mailBox = {imapserver}Sent

The imap_mail_move method return false

and imap_errors() return :

array:2 [
   0 => "Character not allowed in mailbox name: '.'"
   1 => "Character not allowed in mailbox name: '.'"
]

imap_list() method return :

array:41 [
   28 => "{imapserver}Sent"
   ...
   31 => "{imapserver}Drafts"
   ....
   40 => "{imapserver}INBOX"
]

Anyone has a solution ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire