subject($message->getSubject()) ->from($message->getFrom()) ->to($message->getTo()) ->html($message->getBody()); try { $this->mailer->send($mail); } catch (\Exception $exception) { throw new \Exception('Ошибка отправки письма'); } } }