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