Send Mail To Admin
Function: sendMailToAdmin
Visibility: public
Parameter: sendMailToAdmin($messageId,$bodyFile,$vars,$subject)
Description:
Sends mail directly to admin addresses. The mail addresses are set at site/parameters/contacts.
Parameters:
(optional) - integer|null - $messageId - The number of the message id.
(optional) - array|null - $vars - Variables to pass into the bodyFile.
(required) - string - $bodyFile - Mail template file name.
(required) - string - $subject - Subject of the mail.
Return:
boolean - If mail was sent.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view
example: 1
Let's notify the admin something happened.
How to call (example):
Possible outcome (example):
Output: