此控制器代码。 我发现“无法发送密码,请重试!”的问题。 。 我该怎么办?
$mail_message='Dear '.$row[0]['name'].','. "\r\n";
$mail_message.='Your <b>Password</b> is <b>'.$passwordplain.'</b>'."\r\n";
$mail_message.='<br>Please Update your password.';
$mail_message.='<br>Thanks & Regards';
$mail_message.='<br>IT Ardiles';
$mail = new PHPMailer;
$mail->IsSendmail();
$mail->isSMTP();
$mail->SMTPAuth = true;
$mail->SMTPSecure = '';
$mail->Port = 587;
$mail->Host = "mail.xxxxx.co.id";
$subject = 'Forgot Password';
$mail->AddAddress(xxx@xxxxx.co.id);
$mail->IsMail();
$mail->From = 'it@xxxxx.co.id';
$mail->Password = 'xxxxx';
$mail->FromName = 'IT';
$mail->IsHTML(true);
$mail->Subject = $subject;
$mail->Body = $mail_message;
$mail->Send();