wwc
V2EX  ›  问与答

一个 WordPress 使用 SMTP 发信的问题

  •  
  •   wwc · May 24, 2017 · 2474 views
    This topic created in 3281 days ago, the information mentioned may be changed or developed.

    使用的是 WP-mail-SMTP 这个插件。
    各项参数填写都是正确的,报错如下:
    2017-05-24 05:18:42 Connection: opening to ssl://smtp.mxhichina.com:465, timeout=300, options=array ( )
    2017-05-24 05:18:42 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
    2017-05-24 05:18:42 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): Failed to enable crypto
    2017-05-24 05:18:42 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to ssl://smtp.mxhichina.com:465 (Unknown error)
    2017-05-24 05:18:42 SMTP ERROR: Failed to connect to server: (0)
    2017-05-24 05:18:42 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    7 replies    2018-02-08 16:12:10 +08:00
    LittleWhiteMouse
        1
    LittleWhiteMouse  
       May 24, 2017
    境外空间?
    wwc
        2
    wwc  
    OP
       May 24, 2017
    @LittleWhiteMouse 阿里云 ECS
    my101du
        3
    my101du  
       May 24, 2017
    先不要使用 SSL 协议的发信端口试试( 25 ?)
    idblife
        4
    idblife  
       May 24, 2017
    阿里云封 smtp 端口
    比较恶心
    LittleWhiteMouse
        5
    LittleWhiteMouse  
       May 24, 2017
    @wwc #2 那我就不清楚了
    nlzy
        6
    nlzy  
       May 24, 2017 via Android
    看上去是发件服务器的 SSL 证书认证失败,然后 LZ 的服务器主动断开了链接
    lixiaoxin
        7
    lixiaoxin  
       Feb 8, 2018
    现在 443 端口貌似可以用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1052 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 22:40 · PVG 06:40 · LAX 15:40 · JFK 18:40
    ♥ Do have faith in what you're doing.