I have configured mail server using postfix. I'm able receive email from ouside(gmail, yahoo, etc.,). Those email are saved in /var/mail/Maildir/new
path.
I'm trying to read those mails using php.
$emailata = file_get_contents('/var/mail/Maildir/new/1543464041.Vfd01I127d6cM759489.mail');
Getting all data in string. How can I get details like subject, from, body etc.,
Thx.