diff options
author | Jonas Kohl | 2024-12-26 11:14:38 +0100 |
---|---|---|
committer | Jonas Kohl | 2024-12-26 11:14:38 +0100 |
commit | b19fa8150fedfeaff8432f5e9000933ab786d0b1 (patch) | |
tree | 2c3c7ea7b299238d713c92fade6e720961fd4451 | |
parent | 9f89384166b4b7b953a3c4aa5748d8f735859113 (diff) |
-rwxr-xr-x | cgi/contact.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cgi/contact.php b/cgi/contact.php index 2a8d579..eac2c1e 100755 --- a/cgi/contact.php +++ b/cgi/contact.php @@ -1,6 +1,6 @@ <?php -use Symfony\Component\Mailer\Exception\TransportException; +use Symfony\Component\Mailer\Exception\TransportExceptionInterface; use Symfony\Component\Mailer\Transport; use Symfony\Component\Mime\Address; use Symfony\Component\Mime\Email; @@ -91,6 +91,6 @@ try { ->text($body) ); header("Location: /pages/sent.php"); -} catch (TransportException $ex) { - header("Location: /pages/sent_error.php"); +} catch (TransportExceptionInterface $ex) { + header("Location: /pages/sent-error.php"); } |