Задаю явно метод аутентификации LOGIN
$mail->Mailer = 'smtp';
$mail->Host = '192.168.1.3';
$mail->Port = 25;
$mail->SMTPAuth = true;
$mail->SMTPDebug = 'DEBUG_CONNECTION';
$mail->AuthType='LOGIN';
$mail->Username =
Но вижу что используется метод STARTTLS:
250-ETRN
250-AUTH LOGIN PLAIN
250-8BITMIME
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250-STARTTLS
250 SIZE
2023-08-30 14:15:57 CLIENT -> SERVER: STARTTLS
2023-08-30 14:15:57 SMTP INBOUND: "220 2.7.0 Ready to start TLS"
2023-08-30 14:15:57 SERVER -> CLIENT: 220 2.7.0 Ready to start TLS
2023-08-30 14:15:57 SMTP Error: Could not connect to SMTP host.
2023-08-30 14:15:57 CLIENT -> SERVER: QUIT
2023-08-30 14:15:57 SERVER -> CLIENT:
2023-08-30 14:15:57 SMTP ERROR: QUIT command failed:
2023-08-30 14:15:57 Connection: closed
2023-08-30 14:15:57 SMTP connect() failed.