Compare commits

...

4 Commits

Author SHA1 Message Date
Audrey Jensen
0e654394ec revert previous commit 2023-09-14 20:20:53 +00:00
Audrey Jensen
cb111a1fa0 remove unused code 2023-09-14 20:20:32 +00:00
Audrey Jensen
3c172f8e70 remove message logging 2023-09-11 19:49:04 +00:00
Audrey Jensen
408015cc2a catch all errors in msg sending 2023-09-11 19:18:01 +00:00
2 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@
namespace App\Controller;
use App\Form\AnonymousComplaintType;
use Error;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
@ -9,6 +10,7 @@ use Symfony\Component\Yaml\Yaml;
use Symfony\Component\HttpFoundation\Request;
use jv\intranet\Types\NavbarItem;
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpClient\Exception\TransportException;
use Symfony\Component\Mailer\Exception\TransportExceptionInterface;
use Symfony\Component\Mailer\TransportInterface;
use Symfony\Component\Mailer\MailerInterface;
@ -45,7 +47,7 @@ class ComplaintController extends AbstractController
$email->getHeaders()->addTextHeader('X-Auto-Response-Suppress', 'OOF, DR, RN, NRN, AutoReply'); //Tell autoresponders to not reply
try
{
$log->debug($mailer->send($email)->toString());
$mailer->send($email);
return true;
}
catch ( TransportExceptionInterface $e)

View File

@ -25,7 +25,6 @@
{% else %}
<h5 class="alert alert-danger"> Form/email failed to submit with errors. Contact IT </h5>
{% endif %}
{% else %}
{% endif %}
</div>
</body>