最新可用腾讯微博邀请码
非常漂亮功能强大主题wp-Unite高级版
最新腾讯微博邀请码(实时更新中)
恵比寿マスカッツ – 私マンボー  高清下载

现在的位置: 首页网站环境搭建>正文

wangzhandajian category
配置 WP Mail SMTP ssl错误
发表于:2010年06月22日  分类:网站环境搭建  1条评论   

今天给wordpress博客增加评论回复邮件提醒功能,选中了WP Mail SMTP插件,配置QQ邮箱的参数一切正常,但是发送测试邮件的时候提示:

  ERROR: Failed to connect to server: Unable to find the socket transport “ssl” – did you forget to enable it when you configured PHP?

  既然是ssl错误,习惯性的从php.ini中相应行打开支持,(extension=php_openssl.dll),服务器是windows主机,重启iis发现竟然还是不支持?

  查明原因是php_openssl.dll这个链接库无法装入

  上网查了一下资料,原来openssl扩展是依赖于第三方库的。

  要想开启OpenSSL支持,系统需要安装libeay32.dll和ssleay32.dll两个库。

  如果你以前安装过OpenSSL,那么你的系统目录中应该已经存在这两个文件;如果没有安装,PHP的windows发行包里同样附带了这两个文件,将其复制到%system%/system32目录下即可。

  总结,windows主机如果碰到了类似 ERROR: Failed to connect to server: Unable to find the socket transport “ssl” – did you forget to enable it when you configured PHP? 这样的问题,不能只是修改php.ini了事,还要检查下libeay32.dll和ssleay32.dll两个库有没有正确安装。

  BTW:但是新版本(0.8.2)的WP Mail SMTP和WP Thread Comment有冲突,请按照一下方法修改即可解决问题。

  将../wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php中第391-393行的以下代码注释掉或者删掉就可以了:
  if ( $orig != $default_from ) {
  return $orig;
  }

相关日志缩略图

配置 WP Mail SMTP ssl错误:目前有1 条留言

给我留言


快捷键:Ctrl+Enter

留言没头像?这里教你设置头像!