barbushin / php-imap

Manage mailboxes, filter/get/delete emails in PHP (supports IMAP/POP3/NNTP)
MIT License
1.66k stars 457 forks source link

need to move mail to another folder #662

Closed sudsin95 closed 2 years ago

sudsin95 commented 2 years ago

public function moveMail($mailId, string $mailBox): void { Imap::mail_move($this->getImapStream(), $mailId, $mailBox, CP_UID); $this->expungeDeletedMails(); }

how to get $mailId

Sebbo94BY commented 2 years ago

Please take a look at the wiki for getting started: https://github.com/barbushin/php-imap/wiki/Getting-Started

And see the examples: https://github.com/barbushin/php-imap/tree/master/examples