summaryrefslogtreecommitdiff
path: root/cgi/contact.php
diff options
context:
space:
mode:
authorJonas Kohl2024-12-26 11:14:38 +0100
committerJonas Kohl2024-12-26 11:14:38 +0100
commitb19fa8150fedfeaff8432f5e9000933ab786d0b1 (patch)
tree2c3c7ea7b299238d713c92fade6e720961fd4451 /cgi/contact.php
parent9f89384166b4b7b953a3c4aa5748d8f735859113 (diff)
Small fixHEADmain
Diffstat (limited to 'cgi/contact.php')
-rwxr-xr-xcgi/contact.php6
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");
}