catch (\Exception
$e) { throw new RuntimeException(sprintf('Unable to send message with the "%s" transport: ', __CLASS__
).
$e->
getMessage(), 0,
$e);
} if ($email->
getAttachments()) { return parent::
getRequest($message);
} $envelope =
$message->
getEnvelope();
$request =
[ 'FromEmailAddress' =>
$this->
stringifyAddress(self::
getSenderFromHeaders($email->
getHeaders())),
'Destination' =>
[ 'ToAddresses' =>
$this->
stringifyAddresses($this->
getRecipients($email,
$envelope)),
],
'Content' =>
[ 'Simple' =>
[ 'Subject' =>
[ 'Data' =>
$email->
getSubject(),
'Charset' => 'utf-8',
],
'Body' =>
[],
],
],