Send Mail
Function: sendMail
Visibility: public
Parameter: sendMail($messageId,$bodyFile,$vars,$subject,$fromName,$fromAddress,$toName,$toAddress,$ccName,$ccAddress,$attachments,$debug,$dontLogMailSent)
Description:
A function for sending mail - Can send to multiple addresses in same call. Mail will be sent after we specifies information such as: address, subject, message and etc. One of the main things we have to set is the bodyFile - Which will hold the message we want to send. Mail bodyFile will be stored in mail folder and can use html tags. We can pass variable to the bodyFile file using vars.
* there are more then one method to send mails, it's decided according to mail/parameters/method settings.
Parameters:
(optional) - integer|null - $messageId - The number of the message id.
(optional) - array|null - $vars - Variables to pass into the bodyFile.
(optional) - string|null - $fromAddress - From which address?
(optional) - string|array|null - $ccName - Carbon copy name.
(optional) - string|array|null - $ccAddress - Carbon copy address.
(optional) - string|array|null - $attachments - Files to add.
(optional) - integer - $debug - Debug mode?
(optional) - boolean|null - $dontLogMailSent - Do not log mail sent.
(required) - string - $bodyFile - Mail template file name.
(required) - string - $subject - Subject of the mail.
(required) - string - $fromName - From who?
(required) - string|array - $toName - To who?
(required) - string|array - $toAddress - To which address?
Return:
boolean - If mail sent or not.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view