Home  >  Article  >  Backend Development  >  What should I do if I can’t receive php emails?

What should I do if I can’t receive php emails?

藏色散人
藏色散人Original
2021-07-23 10:16:112706browse

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.

What should I do if I can’t receive php emails?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn