| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | 4 | private function sendEmail($recipientEmail, string $subject, string $body) |
|
| 54 | { |
||
| 55 | 4 | $message = (new \Swift_Message($subject)) |
|
| 56 | 4 | ->setFrom('[email protected]') |
|
| 57 | 4 | ->setTo($recipientEmail) |
|
| 58 | 4 | ->setBody($body, 'text/html'); |
|
| 59 | |||
| 60 | // todo need to retry if any failed recipients found ($failedRecipients is array of emails) |
||
| 61 | 4 | $this->mailer->send($message, $failedRecipients); |
|
| 62 | } |
||
| 63 | } |