Info Panel
Roll it!   ⇔
1 - Documantation
* Knowledge Base
  • Mvc
  • Application
  • Advanced
  • Operators
  • Api
* Origin Template
  • Customize
* Core Classes
* Classes

* all grey titles exists but not documented yet

Send Mail To Admin

Type: function

Class: Mail

Platform: 2v

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):
Code:
Possible outcome (example):
Output:
Info Panel
Roll it!   ⇔