The Email class is used to send emails with the correct headers. The ability to add HTML emails is coming shortly.
$blnResult = Email::sendTextEmail($strToEmail, $strToName, $strFromEmail, $strFromName, $strSubject, $strBody);