我想将我的Office 365邮件与CI连接,但这不连接我使用NameCheap服务器Office 365来自Godaddy
require('/home/shoodkoi/public_html/emailcampaign/phpmailer/class.phpmailer.php');
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPDebug = 1;
$mail->SMTPAuth = TRUE;
$mail->SMTPSecure = "tls";
$mail->Port= 587;
$mail->Username='';
$mail->Password= '';
$mail->Host= "smtp.office365.com";
$mail->Mailer = "smtp";
$mail->SetFrom('no-reply@gbosss.co.in', 'Gbosss');```
缺少用户名和密码
$mail->Username='';
$mail->Password= '';
另请注意,FROM 地址必须与 smtp_user
相同