Home > Backend Development > PHP Problem > What should I do if I can't receive php emails?

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

藏色散人
Release: 2023-03-11 19:08:01
Original
2760 people have browsed it

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template