如何通过包含$ mail-> isSMTP()来使phpmailer正常工作;

时间:2019-06-25 16:13:35

标签: php

enter image description here如果我省略了$ mail-> isSMTP(),则可以使以下内容与我的smtp一起使用,但是在使用smtp的第一步中,这样做不会破坏目的吗?我在goDaddy任职,并已按照其他教程进行操作,但仍然无法正常工作。在实现debugging = 2时,我得到了有关

的信息
Warning: Creating default object from empty value in 
/home/pianocou/public_html/includes/signup2.php on line 460

$mail->SMTPDebug = 0;
include_once __DIR__.'/../PHPMailer/Exception.php';
include_once __DIR__.'/../PHPMailer/PHPMailer.php';
include_once __DIR__.'/../PHPMailer/SMTP.php';
$mail = new PHPMailer\PHPMailer\PHPMailer;
//$mail->isSMTP();
$mail->isHTML(true);

enter image description here

我想添加更多代码,但是我的ctrl k无法正常工作,我也无法使其与反引号一起使用。...我不知道该如何缩进代码

0 个答案:

没有答案