国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

webman二進(jìn)制打包后smtp發(fā)信失敗

xy3

問(wèn)題描述

用webman寫(xiě)了一個(gè)發(fā)信api,發(fā)現(xiàn)二進(jìn)制打包前可以發(fā)信,打包后提示網(wǎng)絡(luò)報(bào)錯(cuò)

報(bào)錯(cuò)信息

2023-10-11 14:05:14 Connection: opening to ssl://smtp.163.com:465, timeout=300, options=array()
2023-10-11 14:05:14 Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [phar:///www/wwwroot/mail.skyw.cc/build/webman.bin/vendor/phpmailer/phpmailer/src/SMTP.php line 397]
2023-10-11 14:05:14 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [phar:///www/wwwroot/mail.skyw.cc/build/webman.bin/vendor/phpmailer/phpmailer/src/SMTP.php line 397]
2023-10-11 14:05:14 Connection failed. Error #2: stream_socket_client(): Unable to connect to ssl://smtp.163.com:465 (Unknown error) [phar:///www/wwwroot/mail.skyw.cc/build/webman.bin/vendor/phpmailer/phpmailer/src/SMTP.php line 397]
2023-10-11 14:05:14 SMTP ERROR: Failed to connect to server: (0)
2023-10-11 14:05:14 SMTP Error: Could not connect to SMTP host. Failed to connect to server

截圖報(bào)錯(cuò)信息里報(bào)錯(cuò)文件相關(guān)代碼

打包前
打包后

操作系統(tǒng)及workerman/webman等框架組件具體版本

Centos 7
webman最新版

1495 1 0
1個(gè)回答

胡桃

最好把代碼也貼出來(lái)

  • jlman 2024-01-03
        $mail->SMTPOptions = array(
            'ssl' => array(
                'verify_peer' => false,
                'verify_peer_name' => false,
                'allow_self_signed' => true
            )
        );
  • leideqin 2024-01-09

    應(yīng)該是證書(shū)的問(wèn)題,去下載這個(gè)https://curl.se/ca/cacert.pem,改名放到/etc/ssl/certs/ca-certificates.crt,再試試就知道了

年代過(guò)于久遠(yuǎn),無(wú)法發(fā)表回答
??