@@ 186-193 (lines=8) @@ | ||
183 | switch ($message->getContentType()) { |
|
184 | case 'text/html': |
|
185 | case 'multipart/alternative': |
|
186 | case 'multipart/mixed': |
|
187 | $payload['HtmlBody'] = $message->getBody(); |
|
188 | ||
189 | if ($plain = $this->getMimePart($message, 'text/plain')) { |
|
190 | $payload['TextBody'] = $plain->getBody(); |
|
191 | } |
|
192 | ||
193 | break; |
|
194 | ||
195 | default: |
|
196 | $payload['TextBody'] = $message->getBody(); |
|
@@ 195-200 (lines=6) @@ | ||
192 | ||
193 | break; |
|
194 | ||
195 | default: |
|
196 | $payload['TextBody'] = $message->getBody(); |
|
197 | ||
198 | if ($html = $this->getMimePart($message, 'text/html')) { |
|
199 | $payload['HtmlBody'] = $html->getBody(); |
|
200 | } |
|
201 | } |
|
202 | } |
|
203 |