PHPMailer发送邮件失败时可通过打印详细失败信息来排查原因 $mail->SMTPDebug = 1; // 关闭SMTP调试功能 1 = errors and messages 2 = messages only