How to write a PHP script that reads a failure message?

I am doing bounce-email processing with php. I have a return path in a mail function, for example:

mail ($ to_address, $ subject, $ message, $ headers, "-f". $ return_path);

$ return_path = " bounce_handle@domain.com ";

Now, what should my php script look like (and where to put it) to read all the failure messages? (can show me sample code?)

+3
source share
1 answer

(MTA) "bounce_handle@domain.com", PHP script, , . MTA - , , . MTA, , , , , script.

POP3. . PHP script . . php.net IMAP/POP, .

+3

Source: https://habr.com/ru/post/1710965/


All Articles