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:

  1. Locate and open your php.ini file
  2. Search for the line: ;extension=php_openssl.dll
  3. Enable the module by removing ; char.
  4. Save the file and restart Apache.
posted @ 2017-05-10 14:48  jerryhe326  阅读(397)  评论(0编辑  收藏  举报