Home  >  Article  >  Backend Development  >  在WINDOWS下用PHP发邮件有关问题

在WINDOWS下用PHP发邮件有关问题

WBOY
WBOYOriginal
2016-06-13 13:49:10923browse

在WINDOWS下用PHP发邮件问题
我把在LINUX下运行的程序移到WINDOWS下,发邮件时出现下面的错误:
Warning:   mail()   [function.mail]:   SMTP   server   response:   550   5.7.1   Unable   to   relay   for   cosmos_library@cosmel.com   in   D:\websites\cosmel_com\elink\reply2.php   on   line   12
Email   system   error!


------------------------------------------
reply2.php的12行代码如下:

mail( "cosmos_library@cosmel.com ", "HELLO ",$body, "From:$yourmail ")   or   die( "Email   system   error! ");

--------------------------------------------

请问怎么解决此问题?
(注:WINDOWS下我已经启动SMTP服务了)

------解决方案--------------------
还是你的Smtp Server的问题
25端口已经连接上,但是不能发送

配置一下
------解决方案--------------------
同上,如果还是不行,试试你用客户端能否发送邮件吧
------解决方案--------------------
Google
PHP SMTP class free down
------解决方案--------------------
放狗。。。搜一下

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