In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how to solve php mail errors". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's ideas to study and learn "how to solve php mail errors".
1. Add the native IP address to the relay option of the smtp service.
2. Do a port mapping at the gateway and map port 25 to the local machine.
The problem of errors in the mail () function of php
$to = "atoat@sina.com"; $subject = "php-Mail"; $msg = "I completely understand SMTP servers now!"; $headers = "From: atoat@163.com/r/nReply-To: atoat@163.com"; mail ("$to", "$subject", "$msg", "$headers"); echo "finished!";? >
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 thank you for reading, the above is the content of "how to solve php mail errors". After the study of this article, I believe you have a deeper understanding of how to solve the problem of php mail errors, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.