V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Greek
V2EX  ›  问与答

linux 下用 phpmailer 类 smtp 发送邮件始终不成功

  •  
  •   Greek · Feb 11, 2015 · 3107 views
    This topic created in 4092 days ago, the information mentioned may be changed or developed.

    RT,linux 下用phpmailer类smtp发送邮件始终不成功,提示SMTP -> ERROR: Failed to connect to server: Connection timed out (110),在windows下测试是完全没有问题的,传到公网linux的VPS上一直发送不成功,在网上搜索解决办法找到这篇http://my.oschina.net/wojibuzhu/blog/142691?p=1,解决方法都试过了还是发送不成功,我本地关闭了IPTABLES.

    2 replies    2015-02-11 13:39:38 +08:00
    cst4you
        1
    cst4you  
       Feb 11, 2015   ❤️ 1
    也有可能是机房为了防止乱发邮件封了你的端口(大范围的), 联系你的服务商.
    Greek
        2
    Greek  
    OP
       Feb 11, 2015
    @cst4you 太感谢了,查了下VPS提供商确实封了我的25端口。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   864 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 22:00 · PVG 06:00 · LAX 15:00 · JFK 18:00
    ♥ Do have faith in what you're doing.