Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
48 | 4 | public function send(Envelope $envelope) |
|
49 | { |
||
50 | 4 | $this->validate($envelope); |
|
51 | |||
52 | 4 | $mail = $this->prepareMailer($envelope); |
|
53 | |||
54 | // Call the preSend to set all PHPMailer variables and get the correct header and body; |
||
55 | 4 | $message = $mail->getFullMessageEnvelope(); |
|
56 | |||
57 | 4 | $ses = $this->getSesClient(); |
|
58 | |||
59 | 4 | $ses->sendRawEmail( |
|
60 | [ |
||
61 | 'RawMessage' => [ |
||
62 | 4 | 'Data' => $message, |
|
63 | ] |
||
64 | ] |
||
65 | ); |
||
66 | |||
67 | 4 | return true; |
|
68 | } |
||
69 | } |
||
70 |