How to Check if a mail was received with php

前端 未结 5 1577
旧时难觅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:35

    If you're sending HTML mails, you could use a little trick:

    • generate a unique id for the mail you are sending (based on content and recipient)
    • include an image that is loaded from your webserver

    • in tracker.php, log the id that called the script and send a 1px by 1px image

    This won't work though, if the mail client does not download images from the internet when showing an email, as Thunderbird does, for example (IIRC Outlook does so too)

提交回复
热议问题