Forwarding emails with a PHP script

后端 未结 5 564
醉话见心
醉话见心 2021-01-05 01:58

We have a cron\'ed PHP script that checks an inbox every ten minutes. The purpose of this script is to handle \"STOP to quit\" functionality for our SMS notification service

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-05 02:28

    This has happened to me before. In order to fix it I had to do a imap_base64() on the body of the email after I used imap_fetchbody().

    $body = imap_fetchbody($imap, 1, 1);
    $headers = imap_headerinfo($imap, 1);
    $body = imap_base64($body);
    

提交回复
热议问题