'success' => false,
'message' => 'Could not create mail object.',
]);
return;
} $this->view->
assign([ 'mail' =>
[ 'error' => false,
'content' =>
$mail->
getPlainBodyText(),
'contentHtml' =>
$mail->
getPlainBody(),
'subject' =>
$mail->
getPlainSubject(),
'to' =>
implode(', ',
$mail->
getTo()),
'fromMail' =>
$mail->
getFrom(),
'fromName' =>
$mail->
getFromName(),
'sent' => false,
'isHtml' => !
empty($mail->
getPlainBody()),
'orderId' =>
$orderId,
],
]);
}