Hallo,
seitdem ein Kunde auf Office365 umgestellt und dort einen SMTP-Server eingerichtet hat, funktioniert unser Kontaktfomular nicht mehr.
Dies steht in der parameters.yml:
In der Log-Datei kommt dieser Fehler:mailer_transport: smtp
mailer_host: smtp.office365.com
mailer_user: info@domain.de
mailer_password: 'mein-passwort'
mailer_port: 587
mailer_encryption: tls
Die E-Mail-Adresse für mailer_user ist identisch mit der im Kontaktformular und mit der in den Startpunkt-Einstellungen.[2024-04-24T06:25:11.179209+00:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Mailer\Exception\TransportExcept ion: "Failed to authenticate on SMTP server with username "info@domain.de" using the following authenticators: "LOGIN", "XOAUTH2". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 5.7.139 Authentication unsuccessful, the user credentials were incorrect. [FR2P281CA0061.DEUP281.PROD.OUTLOOK.COM 2024-04-24T06:24:56.065Z 08DC63E60F807A19]".". Authenticator "XOAUTH2" returned "Expected response code "235" but got code "535", with message "535 5.7.3 Authentication unsuccessful [FR2P281CA0061.DEUP281.PROD.OUTLOOK.COM 2024-04-24T06:25:06.174Z 08DC63E60F807A19]"."." at /var/www/vhosts/domain.de/httpdocs/vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php line 198 {"exception":"[object] (Symfony\\Component\\Mailer\\Exception\\TransportE xception(code: 0): Failed to authenticate on SMTP server with username "info@domain.de" using the following authenticators: "LOGIN", "XOAUTH2". Authenticator "LOGIN" returned "Expected response code "235" but got code "535", with message "535 5.7.139 Authentication unsuccessful, the user credentials were incorrect. [FR2P281CA0061.DEUP281.PROD.OUTLOOK.COM 2024-04-24T06:24:56.065Z 08DC63E60F807A19]".". Authenticator "XOAUTH2" returned "Expected response code "235" but got code "535", with message "535 5.7.3 Authentication unsuccessful [FR2P281CA0061.DEUP281.PROD.OUTLOOK.COM 2024-04-24T06:25:06.174Z 08DC63E60F807A19]".". at /var/www/vhosts/domain.de/httpdocs/vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php:198)"} []
Das Passwort steht, wie oben zu sehen, in Hochkammas, habe es auch schon mit Anführungszeichen probiert.
Muss ich einige Sonderzeichen escapen? Bei dem @-Zeichen habe ich es bereits mit %%40 versucht, habe ich so einem anderen Thread gelesen. Im Passwort gibt es aber noch einige Sonderzeichen wie das Prozentzeichen und ein Ausrufezeichen. Ich weiß aber nicht, wie man diese beiden escapet, sofern das überhaupt die Ursache ist.
Woran kann es ansonsten liegen?
Vielen Dank im Voraus.
Lesezeichen