Hallo zusammen,
ich habe das Problem, das nach einem Update einer Website auf 4.13.36 keine Mail aus dem Kontaktformular rausgeht (hatte bei Contao 3.5.40 noch problemlos funktioniert). Es kam auch keine Fehlermeldung.
Daraufhin habe ich mich ein wenig umgesehen im Forum und bin auf den Hinweis SMTP gestoßen.
Nur scheinbar bin ich zu blöd dafür und bekomme nach Eingabe der Daten in die env.local eine Fehlermeldung.
Code:
MAILER_DSN=smtp://<username>:<password>@smtp.ionos.de:465?encryption=ssl
Fehlermeldung in den logs ist:
Code:
[2024-02-16T19:39:24.084636+01:00] request.INFO: Matched route "tl_page.6". {"route":"tl_page.6","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","_format":"html","_canonical_route":"tl_page.6","parameters":"","pageModel":{"Contao\\PageModel":[]},"_route":"tl_page.6","_route_object":{"Contao\\CoreBundle\\Routing\\Page\\PageRoute":[]}},"request_uri":"https://physiotherapie-dornburg.de/kontakt.html","method":"POST"} []
[2024-02-16T19:39:24.125336+01:00] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2024-02-16T19:39:24.318305+01:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Mailer\Exception\TransportException: "Expected response code "250" but got code "550", with message "550-Requested action not taken: mailbox unavailable 550 Sender address is not allowed."." at /homepages/4/d510600907/htdocs/website_2024/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php line 307 {"exception":"[object] (Symfony\\Component\\Mailer\\Exception\\TransportException(code: 550): Expected response code \"250\" but got code \"550\", with message \"550-Requested action not taken: mailbox unavailable\r\n550 Sender address is not allowed.\". at /homepages/4/d510600907/htdocs/website_2024/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php:307)"} []
Ich bin mittlerweile eher im grafischen Bereich unterwegs, daher seid nicht allzu streng mit mir
Hoster ist bei der Website IONOS.
Hatte vor kurzem eine andere Website auf dem selben Weg upgedatet (bei strato) und hier funktioniert das Kontaktformular problemlos (ohne SMTP).
Lesezeichen