In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the relevant knowledge of "how to solve the problem of php mail errors". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Solutions to php mail errors: 1, add the native IP address to the relay option of the smtp service; 2, do a port mapping in the gateway and map port 25 to the local machine.
This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer
How to solve the problem of php mail errors?
The problem of errors in the mail () function of php
Phpinfo
Error that occurred:
Warning: mail () [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for atoat@sina.com in C:/webserver/htdocs/www/mail.php on line 14
Php.ini configuration
[mail function]; For Win32 only.SMTP = localhostsmtp_port = 25; For Win32 only.sendmail_from = atoat@163.com
The smtp service that comes with windows has been installed
It took a long time to find that the native IP address needs to be added to the relay option of the smtp service.
Virtual Server-> Properties-> access-> Relay
Select list below only > single computer = > add a local address of 127.0.0.1
There was no problem with the program, but the message was not immediately received in the inbox.
Did not receive because my machine is in the internal network, can not send mail to the external network.
Solution:
Do a port mapping at the gateway to map port 25 to the local machine. Or the local machine has a public network IP.
This is the end of "how to solve the problem of php mail errors". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.