Ниже - мой код, используемый для отправки электронного письма.Выходные сообщения PHPMailer:
2019-01-19 13:47:42 Connection: opening to xxxxxx:465, timeout=5, options=array()
2019-01-19 13:47:42 Connection: opened
Я пробовал с неправильным паролем, и ничего не меняется.У кого-нибудь есть идеи, что это может произойти?
$mail = new PHPMailer();
$mail->isSMTP(); // Set mailer to use SMTP
$mail->SMTPDebug = 3; // Enable verbose debug output
$mail->Host = 'xxxxxxx'; // Specify main and backup SMTP servers
$mail->Port = 465; // TCP port to connect to
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'xxxxxxxx@xxx.xxx'; // SMTP username
$mail->Password = 'xxxxxxxx'; // SMTP password
$mail->setFrom('xxxxxxxxxxx', 'xxxxxxx');
$mail->addAddress('xxxxx', 'xxxxx'); // Add a recipient
$mail->addReplyTo('xxxxxxxxxx', 'xxxxxx');
$mail->isHTML(true); // Set email format to HTML
$mail->Timeout = 5;
$mail->Subject = $subject;
$mail->Body = $text;
$mail->send();