Can't fetch plain text mails content using IMAP

后端 未结 1 1980
长发绾君心
长发绾君心 2021-02-10 09:47

I am reading mails from a specific mail id using IMAP function.But i am not able to read the mail content for plain text mails. It ‘s s working perfect

相关标签:
1条回答
  • 2021-02-10 10:02

    Your problem is this line:

    $msg = imap_fetchbody($inbox,$email_number,1.2); 
    

    1.2 is TEXT/HTML email part, which is used for html email body.

    1.1 is TEXT/PLAIN - plain text email body - for plain text messages you'll need to use this one.

    0 讨论(0)
提交回复
热议问题