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