In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about the solution to phpcms's failure to send email. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
What if phpcms fails to send mail? Resolved that the Phpcms message could not be sent
When the website was put on the server, a big problem was found. What's the problem?
The mailbox service that can be perfectly used locally can no longer be used, which makes the editor puzzled and frantically looks for a solution on the Internet, only to find that there is no useful one.
Finally, there was no way. I asked the server provider and found that the fsockopen function was not disabled (this function is a very important function for sending mail by phpcms). Finally, I called up the error log of phpcms (the error log of phpcms is the error_log.php file). The location of the error log is: root directory / caches/error_log.php), and I found that the mail was sent every time. The error log will have the same error (fsockopen (): unable to connect to smtp.163.com:25 (Connection timed out)).
The original meaning of this sentence is that you cannot connect to port 25 of the e-mail address (the mail server used here is 163). In other words, the server forbids port 25.
The editor uses the Ali cloud server here. After discussion with the server provider, it is found that the 25-port mail port of the Ali cloud server is prohibited by default, and it is very troublesome to apply for it, and it may not be approved.
The editor then changed to port 465, because the port 465 server is not prohibited. But simply changing the phpcms background mail sending port to 465 can not send mail, so how to change it?
In fact, it is very simple, in the mail server line to change to: ssl://smtp.163.com (here can be changed to QQ, Sina, but do not forget the front ssl://), this is fine.
How's it going? does it help you? In fact, if you want to send any e-mail on Ali server, you can't use port 25. If you use it, please change it to 465. By the way, don't forget that the verification password is the client authorization password, and the mail setting test is the email address that accepts the email.
Thank you for reading! This is the solution to the failure of sending email on phpcms. I hope the above content can be helpful to you so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.