$this->
View()->
assign([ 'success' => false,
'data' =>
$data,
'message' =>
$namespace->
get('no_data_passed', 'No mail data passed'
),
]);
return;
} $mailTemplateName =
$this->
Request()->
getParam('templateName'
) ?: 'sORDERDOCUMENTS';
$mail =
$this->container->
get('modules'
)->
Order()->
createStatusMail($orderId, 0,
$mailTemplateName);
if (!
$mail instanceof Enlight_Components_Mail
) { $this->
View()->
assign([ 'success' => false,
'message' => 'Could not create mail object.',
]);
return;
} $mail->
clearRecipients();
$mail->
clearSubject();