Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
45 | public function sendEmail(string $receiver, string $subject, string $body) |
||
46 | { |
||
47 | $message = (new Swift_Message()) |
||
48 | ->setSubject($subject) |
||
49 | ->setFrom($this->replyEmail) |
||
50 | ->setReplyTo($this->replyEmail) |
||
51 | ->setTo($receiver) |
||
52 | ->setBody($body); |
||
53 | |||
54 | //send message & check if at least one receiver was reached |
||
55 | return $this->mailer->send($message) > 0; |
||
56 | } |
||
66 |