php邮件发送,服务器拒接连接,该如何处理
Jun 13, 2016 pm 01:40 PM
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

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
