The reason why php mail cannot be received is because the other party's mail server filters or rejects the incoming mail. As long as the filtering is removed, the problem of not receiving mail can be solved.
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
php What should I do if I cannot receive emails?
PHPmailer successfully sends the email, but the other party cannot receive the email
PHPmailer is used in the project to send emails to the customer's mail server. The $mail object returns a sending result of true, and the result is that of the customer I always can't receive emails from my mailbox.
Set $mail->SMTPDebug = 2 to return client and server-side errors to echo. As a result, no error information was found in Chrome's network.
I tried changing the recipient’s email address to my own QQ email address and found that I could receive the email. So I suspected that the other party's mail server filtered or rejected the mail I sent.
Then, I changed the outbox to a 163 mailbox and sent it. As a result, the other party received the email in the trash can, and the problem was solved.
The problem may be caused by the other party's mail server rejecting some outbox addresses. Unfiltering should also solve the problem.
Record this question here to avoid forgetting it in the future
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What should I do if I can't receive php emails?. For more information, please follow other related articles on the PHP Chinese website!