注意事项:
- 邮箱账户不能开启微信动态验证码
- 因为腾讯企业邮箱必须用SSL加密协议(http://service.exmail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1000564),所以PHP必须开启openssl扩展
通过这个方式可以查看是否安装了opensslphp -m | grep openssl
- PHPMailer 的配置
'mailer' => array( 'class' => 'application.extensions.mailer.EMailer', 'pathViews' => 'application.views.email', 'pathLayouts' => 'application.views.email.layouts', 'Host' => MAIL_HOST, 'Port' => MAIL_PORT, 'Username' => MAIL_USERNAME, 'Password' => M