Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function sendResetPasswordEmail(User $user) |
||
22 | { |
||
23 | $message = (new \Swift_Message('Reset password instructions')) |
||
24 | ->setFrom($this->sender) |
||
25 | ->setTo($user->getEmail()) |
||
26 | ->setBody($this->twig->render('emails/resetPassword.txt.twig', ['user' => $user]), 'text/plain'); |
||
27 | |||
28 | $this->mailer->send($message); |
||
29 | } |
||
41 |