admin管理员组文章数量:1559750
转载自:http://blog.csdn/f0225/article/details/22052213
注意事项:
- 邮箱账户不能开启微信动态验证码
- 因为腾讯企业邮箱必须用SSL加密协议(http://service.exmail.qq/cgi-bin/help?subtype=1&&id=28&&no=1000564),所以PHP必须开启openssl扩展
php -m | grep openssl
3. 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' => MAIL_PASSWORD,
'SMTPAuth' => true,
'Mailer' => 'smtp',
'SMTPSecure' => 'ssl',
'From' => MAIL_FROM,
'FromName' => MAIL_FROMNAME,
),
4. 腾讯SMTP信息
POP3/SMTP协议
接收邮件服务器:pop.exmail.qq ,使用SSL,端口号995
发送邮件服务器:smtp.exmail.qq ,使用SSL,端口号465
海外用户可使用以下服务器
接收邮件服务器:hwpop.exmail.qq ,使用SSL,端口号995
发送邮件服务器:hwsmtp.exmail.qq ,使用SSL,端口号465
注:不需要开启apache的ssl_module
版权声明:本文标题:PHPMailer 腾讯企业邮箱 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1727423346a1113822.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论