Closed Dhavalptel closed 1 year ago
seems imap_mail_move
expects an IMAP\Connection
as first parameter see https://www.php.net/manual/de/function.imap-mail-move.php. Alternatively you could use the build in move function: $cm->moveMessage(...);
or $cm->moveManyMessages(...);
see https://github.com/Webklex/php-imap/blob/master/src/Connection/Protocols/ImapProtocol.php#L976
@inkarnation Yes, I followed the same and was able to fix it.
Describe the bug Getting imap_mail_move() expects parameter 1 to be resource, object given
To Reproduce
@Webklex I'm using this
$client->getConnection()
which returns object, Do we need any other parameter at position 1?Let me know Thanks!