How to Check if a mail was received with php

前端 未结 5 1589
旧时难觅i
旧时难觅i 2020-12-17 05:00

i\'m new in php. I want to send an email to someone and afterwards i need to check if this mail could be received. How do i do that? Hope you guys understand my problem ;).

5条回答
  •  情书的邮戳
    2020-12-17 05:34

    There is no definite solution for this. Web bugs are a o.k. idea but they're dying out, as they are very problematic security wise and are blocked by default in every current E-mail client I know of. I would suggest a combination of checking a bounce inbox like brianreavis suggested, and in addition, requesting a delivery receipt using the following header line:

     Disposition-Notification-To:
    

    That way, you can get most negatives (bounced mails) as well as many positives (receipts). Sending the receipt can be blocked by the sender, but together with parsing error notifications, you should have fairly reliable system.

提交回复
热议问题