Myluzh Blog

PHP使用PHPMailer发送邮件实例

2020-10-9 myluzh PHP

0x01 Github项目地址:https://github.com/PHPMailer/PHPMailer/ 0x02 菜鸟教程实例: <?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require './src/Exception.php'; require './src/PHPMailer.php'; require './src/SMTP.php'; $mail = new PHPMailer(true); // Passing `true` enables exceptions try { //服务器配置 $mail->CharSet ="UTF-8"; //设定邮件编码 $mail->SMTPDebug = 0; // 调试模式输出 $mail->isSMTP(); ...

阅读全文>>

标签: php PHPMailer

评论(0) (889)