You are here

protected function AmazonSesHandler::getPartContent in Amazon SES 2.0.x

Get the content from a MIME message part.

Parameters

string $part: The message part.

Return value

string|false The content, or FALSE if it could not be parsed.

1 call to AmazonSesHandler::getPartContent()
AmazonSesHandler::getParts in src/AmazonSesHandler.php
Get the plain text and HTML parts of a multipart MIME message.

File

src/AmazonSesHandler.php, line 195

Class

AmazonSesHandler
Amazon SES service.

Namespace

Drupal\amazon_ses

Code

protected function getPartContent($part) {
  $split = preg_split('#\\r?\\n\\r?\\n#', $part);
  if ($split && isset($split[1])) {
    return $split[1];
  }
  return FALSE;
}