I want to read complete header of an email. I am using IMAP for this but I am unable to get body(content) part received in header. Is it possible to get this.
Content-Type: text/html; charset="UTF-8"
<html>
<head>
If you want to fetch all, you need to fetch
Each body it has imap_fetchbody.
Proceed like below -: $hang =imap_fetchheader($loginToInbox,$email); $hang .="\n".imap_body($loginToInbox, $email); And then directly use INSERT command to make its entry in DB.