<?php namespace app\home\logic; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; class QQmail{ public static function qq($addr,$code){ $mail = new PHPMailer(true); try{ //邮件调试模式 $mail->SMTPDebug = 1; //设置邮件使用SMTP $mail->isSMT
一.mail基本配置 1.配置:vim /etc/mail.rc 在文件末尾追加以下内容: set from=@.com # 别名<123456789@163.com> set smtp=smtphz.qiye..com set smtp-auth-user=@.com set smtp-auth-password=xxx set smtp-auth=login # 两种常用模式:tls.ssl,如果使用的是后者,则password填写授权码而不是密码 set ssl-verify=ignor
本教程为gevin.me原创文章,转载请注明: CAS SSO:配置过程中的错误解决方法 | Gevin’s Blog 本文将收集在配置CAS SSO遇到的所有错误,希望对大家有帮助,也方便下次搭建的时候可以参考! 一.java.lang.exception connector attribute sslcertificatefile must be defined when using ssl with apr Tomcat启动报如上错误,只需要将conf\server.xml里面的以下内容注