Skip to content
Snippets Groups Projects
Commit 7fae8bc7 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

correction envoi mail debug

parent ad601809
Branches
Tags
No related merge requests found
Pipeline #33629 passed
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment