transports/mail/drivers/Postmark.php 1 location
|
@@ 211-218 (lines=8) @@
|
208 |
|
* @param string $mimeType The content type the part to return must be of. |
209 |
|
* @return \Swift_Mime_MimeEntity |
210 |
|
*/ |
211 |
|
protected function getMimePart(\Swift_Mime_Message $message, string $mimeType) |
212 |
|
{ |
213 |
|
foreach ($message->getChildren() as $part) { |
214 |
|
if (0 === strpos($part->getContentType(), $mimeType) && !$part instanceof \Swift_Mime_Attachment) { |
215 |
|
return $part; |
216 |
|
} |
217 |
|
} |
218 |
|
} |
219 |
|
|
220 |
|
/** |
221 |
|
* Processes the attachments in the MIME Message into the payload structure passed in by reference. |
transports/mail/drivers/Sendgrid.php 1 location
|
@@ 245-252 (lines=8) @@
|
242 |
|
* @param string $mimeType The content type the part to return must be of. |
243 |
|
* @return \Swift_Mime_MimeEntity |
244 |
|
*/ |
245 |
|
protected function getMimePart(\Swift_Mime_Message $message, string $mimeType) |
246 |
|
{ |
247 |
|
foreach ($message->getChildren() as $part) { |
248 |
|
if (0 === strpos($part->getContentType(), $mimeType) && !$part instanceof \Swift_Mime_Attachment) { |
249 |
|
return $part; |
250 |
|
} |
251 |
|
} |
252 |
|
} |
253 |
|
|
254 |
|
/** |
255 |
|
* Processes the attachments in the MIME Message into the payload structure passed in by reference. |