Loading src/UnicaenMail/Service/Mail/MailService.php +43 −41 Original line number Diff line number Diff line Loading @@ -273,6 +273,8 @@ EOS; $to = implode(',', $to); } try { /** @var Mail $mail */ $mail = $this->createMailEntity(); $mail->setDateEnvoi(new DateTime()); Loading Loading @@ -310,19 +312,19 @@ EOS; $mailSymfony = $this->prepareMessageForRedirection($mailSymfony, $module); } $this->getMailer()->send($mailSymfony); } catch (TransportExceptionInterface $e) { } catch (TransportExceptionInterface $e) { throw new RuntimeException("Échec de l'envoi du message", 0, $e); } $mail->setStatusEnvoi(Mail::SUCCESS); } else { } else { $mail->setStatusEnvoi(Mail::NOTSENT); } $this->update($mail); } catch (Exception) { return null; } return $mail; } Loading Loading
src/UnicaenMail/Service/Mail/MailService.php +43 −41 Original line number Diff line number Diff line Loading @@ -273,6 +273,8 @@ EOS; $to = implode(',', $to); } try { /** @var Mail $mail */ $mail = $this->createMailEntity(); $mail->setDateEnvoi(new DateTime()); Loading Loading @@ -310,19 +312,19 @@ EOS; $mailSymfony = $this->prepareMessageForRedirection($mailSymfony, $module); } $this->getMailer()->send($mailSymfony); } catch (TransportExceptionInterface $e) { } catch (TransportExceptionInterface $e) { throw new RuntimeException("Échec de l'envoi du message", 0, $e); } $mail->setStatusEnvoi(Mail::SUCCESS); } else { } else { $mail->setStatusEnvoi(Mail::NOTSENT); } $this->update($mail); } catch (Exception) { return null; } return $mail; } Loading