$this->
View()->
assign([ 'success' => false,
'message' => 'Could not create mail object.',
]);
return;
} $mail->
clearRecipients();
$mail->
clearSubject();
$mail->
clearFrom();
$mail->
clearBody();
$mailData =
[ 'attachments' =>
$attachments,
'subject' =>
$this->
Request()->
getParam('subject', ''
),
'fromMail' =>
$this->
Request()->
getParam('fromMail'
),
'fromName' =>
$this->
Request()->
getParam('fromName'
),
'to' =>
[$this->
Request()->
getParam('to'
)],
'isHtml' =>
$this->
Request()->
getParam('isHtml'
),
'bodyHtml' =>
$this->
Request()->
getParam('contentHtml', ''
),
'bodyText' =>
$this->
Request()->
getParam('content', ''
),
];