| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 4 | public function send(Envelope $envelope) |
|
| 34 | { |
||
| 35 | 4 | $this->validate($envelope); |
|
| 36 | |||
| 37 | 4 | $mail = $this->prepareMailer($envelope); |
|
| 38 | |||
| 39 | // Call the preSend to set all PHPMailer variables and get the correct header and body; |
||
| 40 | 4 | $message = $mail->getFullMessageEnvelope(); |
|
| 41 | |||
| 42 | 4 | $ses = $this->getSesClient(); |
|
| 43 | |||
| 44 | 4 | $ses->sendRawEmail( |
|
| 45 | [ |
||
| 46 | 'RawMessage' => [ |
||
| 47 | 4 | 'Data' => $message, |
|
| 48 | ] |
||
| 49 | 4 | ] |
|
| 50 | 4 | ); |
|
| 51 | |||
| 52 | 4 | return true; |
|
| 53 | } |
||
| 54 | } |
||
| 55 |