Email component
sendEmail(array $args)
Sends email; this is a simplified wrapper to the PHP 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:
- email address- email address
Optional keys are:
- (boolean) if false, text-only email is sent- (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


