Email component
sendEmail(array $args)
Sends email; this is a simplified wrapper to the PHPmail() function that adds a flag to send HTML email and handles all the from/to syntax including setting the envelope sender which is required to keep your mail out of spam folders on certain mail providers.Required argument keys are:
to- email addressfrom- email addresssubjectbody
Optional keys are:
fromNamehtml- (boolean) if false, text-only email is sentheaders- (array) headers to add to the email, for HTML emails there is no need to set the Content-type, just set the html boolean (above) to true


