@Starker3 opened this Issue on January 7th 2021

We received the following report:

Matomo 4.0.5: When i change my password i'll get an error page:

````An error occurred
Verbindung zum SMTP-Server fehlgeschlagen. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Translation: Connection to the SMTP server failed

The password is changed successfully, but the error still occurs

A test using:
`./console core:test-email test<a class='mention' href='https://github.com/example'>@example</a>.com`
has been successful.

It is not appear to be a problem with PHP mailer.

On their system 6.1.8 is installed and the following test worked fine:

use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
require '../autoload.php';
$mail = new PHPMailer();
$mail->Host = 'localhost';
$mail->Port = 25;
$mail->setFrom('test@example.com', 'Matomo');
$mail->addReplyTo('test@example.com', 'Matomo');
$mail->addAddress('test@example.com', 'Uwe Wenglewski');
$mail->Subject = 'PHPMailer SMTP without auth test';
$mail->AltBody = 'This is a plain-text message body';
if (!$mail->send()) {
echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
echo 'Message sent!';

@Starker3 commented on January 8th 2021

Additional note after further feedback from user:
They received the email notifying them of a new update available.

So it seems the PHPMailer is only failing to send the password reset emails.

@tsteur commented on January 10th 2021 Member

@Starker3 I'll close this for now as a duplicate of https://github.com/matomo-org/matomo/issues/17026

Maybe they can set login_password_recovery_email_address and login_password_recovery_replyto_email_address to noreply@{DOMAIN} (same config value as noreply_email_address) and see if it works then.

This Issue was closed on January 10th 2021
Powered by GitHub Issue Mirror