Greek
V2EX  ›  问与答

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

  •  
  •   Greek · Feb 11, 2015 · 3588 views
    This topic created in 4284 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
    cst4you
    Feb 11, 2015❤️1
    1
    也有可能是机房为了防止乱发邮件封了你的端口(大范围的), 联系你的服务商.
    Greek
    Greek
    OP
    Feb 11, 2015
    2
    @cst4you 太感谢了,查了下VPS提供商确实封了我的25端口。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1289 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 21:38 · PVG 05:38 · LAX 13:38 · JFK 16:38
    ♥ Do have faith in what you're doing.