summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");
}