Home > Backend Development > PHP Tutorial > php邮件发送,服务器拒接连接,该如何处理

php邮件发送,服务器拒接连接,该如何处理

WBOY
Release: 2016-06-13 13:40:25
Original
963 people have browsed it

php邮件发送,服务器拒接连接
php邮件发送,服务器拒接连接,服务器在美国,SMTP是163的,端口25,在本机测试很完美,放到服务器上出现这样的错误:

Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.163.com:25 (Connection refused) in /home/iee/fair-macau.com/ch/hotel/class.mail.php on line 75

Warning: socket_set_timeout(): supplied argument is not a valid stream resource in /home/iee/fair-macau.com/ch/hotel/class.mail.php on line 76

我觉得问题出在:1.美国服务器不支持163。2.服务器配置文件发送邮件设置没打开,(我觉得这个问题更可信点)3.人品问题,(哈哈,开玩笑。)大家觉得是哪出错了呢,本机测试没一点问题啊,以前也做过一样的邮件发送,放在服务器上没问题的啊。

------解决方案--------------------
看看是不是端口的问题
------解决方案--------------------
我也写过 但是都是免费的 没有出现过这种问题 也是163的 端口号25 

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