Commit 7fae8bc7 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

correction envoi mail debug

parent ad601809
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ namespace UnicaenSiham\Service;
use Symfony\Component\Mailer\Exception\TransportExceptionInterface;
use Symfony\Component\Mailer\Mailer;
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;
use Symfony\Component\Mime\Address;
use Symfony\Component\Mime\Email;
use UnicaenSiham\Entity\Agent;
use UnicaenSiham\Exception\SihamException;
@@ -1468,7 +1469,7 @@ class Siham

        $mail = new Email();
        $mail->html($body);
        $mail->from($config['debug']['from'], 'Application OSE');
        $mail->from(new Address($config['debug']['from'], 'Application OSE'));
        $mail->to($config['debug']['to']);

        if (!empty($exception)) {