yii2设置发送邮件的一些配置
错误提示:
Warning: stream_socket_enable_crypto(): this stream does not support SSL/crypto in C:\xampp\htdocs\12work\class.smtp.php on line 197
打开php的配置Open SSL
Alright, we need to enable Open SSL module. Here is how to do it:
- Locate and open your
php.ini
file - Search for the line:
;extension=php_openssl.dll
- Enable the module by removing
;
char. - Save the file and restart Apache.