SymfonyMailer::mail should handle other exception types

Created on 26 October 2023, 11 months ago
Updated 2 December 2023, 10 months ago

Problem/Motivation

If any other exception apart from an instance of TransportExceptionInterface when sending the email, a WSOD appears.

Steps to reproduce

Not sure how to reproduce this locally. For us it appears on platform.sh instances with outgoing emails disabled. For some reason then the transport method is switched to DSN which fails in \Symfony\Component\Mailer\Transport\Dsn::fromString with InvalidArgumentException.

I haven't investigated why it actually switches from SMTP (which is the default transport set by this module).

Proposed resolution

Add a fallback catch for \Exception

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇸🇮Slovenia Primsi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024