| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function send(string $fromName, string $fromEmail, string $toEmail, string $subject, string $body): void |
||
| 22 | { |
||
| 23 | // Create a message |
||
| 24 | $message = (new Swift_Message($subject)) |
||
| 25 | ->setFrom([$fromEmail => $fromName]) |
||
| 26 | ->setTo([$toEmail]) |
||
| 27 | ->setReplyTo([$fromEmail]) |
||
| 28 | ->setBody($body); |
||
| 29 | |||
| 30 | // Send the message |
||
| 31 | $this->mailer->send($message); |
||
| 32 | } |
||
| 34 |