Home > Backend Development > PHP Tutorial > phpmailer lcn解决思路

phpmailer lcn解决思路

WBOY
Release: 2016-06-13 10:45:33
Original
1022 people have browsed it

phpmailer lcn
客户的空间买的是美国的lcn.com网上的,我用phpmailer做的发邮件的功能在我本地能发,在我们香港的windows服务器上也能发,但到了客户的服务器上就不能发了SMTP Error: Could not connect to SMTP host.不管是gmail的,QQ还是网易的,我都试过了,用phpinfo();,客户的PHP版本是PHP Version 5.2.6-1+lenny16,Sockets Support 也是enabled ,不知道是啥子原因。。。。。。

------解决方案--------------------
pfsockopen()函数替换掉 fsockopen() 看看...
总之有一点就是美国主机上一定做了限制.

Related labels:
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