Read and Send Emails from Yii Backend

I’m looking for a solution which allows me to receive and send/reply to emails from within the yii backend. I host my yii app on a dedicated server so I’ve full access to server. I’ve been Googling but couldn’t find any solution. Can anyone recommend anything?

Sending EMails: GitHub - yiisoft/yii2-symfonymailer: Yii 2 Symfony mailer extension.
Reading Mails: GitHub - unyii2/yii2-imap or PHP: IMAP - Manual

Assumption here you want IMAP not POP3