用webman寫(xiě)了一個(gè)發(fā)信api,發(fā)現(xiàn)二進(jìn)制打包前可以發(fā)信,打包后提示網(wǎng)絡(luò)報(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
Centos 7
webman最新版
最好把代碼也貼出來(lái)