简体   繁体   中英

Catch automatic mail return with php mail function

I'm using the function "mail" to send an email to an user in php. The information in this email needs to be only known in the email (not stocked on the server).

But some of the users have, for some reasons, an invalid email. When you try to send an email to an unknown address, you receive an automatic email from "Mail delivery system".

The idea is that I want to catch this email to be able to manage this situation. Is there any way to do this in php ? Or is it possible to test if an email is reachable ?

Thanks in advance.

I have been using this library in a few projects and it does the job of handling bounces fairly well. No handler like these can be made to interpret bounce email 100% correct since some MTA:s do not follow the RFC standards, and there are other libraries available out there as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM