Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
49 | public function sendMailRecovery($mailTo) |
||
50 | { |
||
51 | $password = $this->generator->generator(); |
||
52 | $message = \Swift_Message::newInstance() |
||
53 | ->setSubject('Registration') |
||
54 | ->setFrom($this->mailerFrom) |
||
55 | ->setTo($mailTo) |
||
56 | ->setBody( |
||
57 | $this->templating->render( |
||
58 | '@App/Emails/recovery.html.twig', |
||
59 | array('password' => $password) |
||
60 | ), |
||
61 | 'text/html' |
||
62 | ); |
||
63 | |||
64 | $this->mailer->send($message); |
||
65 | |||
66 | return $password; |
||
67 | } |
||
68 | } |