wwc
V2EX  ›  问与答

一个 WordPress 使用 SMTP 发信的问题

  •  
  •   wwc · May 24, 2017 · 2808 views
    This topic created in 3460 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
    LittleWhiteMouse
    May 24, 2017
    1
    境外空间?
    wwc
    wwc
    OP
    May 24, 2017
    2
    @LittleWhiteMouse 阿里云 ECS
    my101du
    my101du
    May 24, 2017
    3
    先不要使用 SSL 协议的发信端口试试( 25 ?)
    idblife
    idblife
    May 24, 2017
    4
    阿里云封 smtp 端口
    比较恶心
    LittleWhiteMouse
    LittleWhiteMouse
    May 24, 2017
    5
    @wwc #2 那我就不清楚了
    nlzy
    nlzy
    May 24, 2017 via Android
    6
    看上去是发件服务器的 SSL 证书认证失败,然后 LZ 的服务器主动断开了链接
    lixiaoxin
    lixiaoxin
    Feb 8, 2018
    7
    现在 443 端口貌似可以用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3969 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:38 · PVG 17:38 · LAX 01:38 · JFK 04:38
    ♥ Do have faith in what you're doing.