public static function sendGenericEmail($email, $subject, $bodyHtml, $bodyHtmlAlt = '')
    {
        $mail = self::getNewMailer($email);
        $mail->WordWrap = 50; // Set word wrap to 50 characters
        $mail->isHTML(true); // Set email format to HTML
        $mail->Subject = $subject;
        $mail->Body = $bodyHtml;
        $mail->AltBody = $bodyHtmlAlt;
        return $mail->send();
    }
public static function sendGenericEmail($email, $subject, $bodyHtml, $bodyHtmlAlt = '')
    {
        $mail = self::getNewMailer($email);
        $mail->WordWrap = 50; // Set word wrap to 50 characters
        $mail->isHTML(true); // Set email format to HTML
        $mail->Subject = $subject;
        $mail->Body = $bodyHtml;
        $mail->AltBody = $bodyHtmlAlt;
        return $mail->send();
    }
public static function sendGenericEmail ( $ email , $ subject , $ bodyHtml , $ bodyHtmlAlt = '' ) { $ mail = self :: getNewMailer ( $ email ) ; $ mail -> WordWrap = 50 ; // Set word wrap to 50 characters $ mail -> isHTML ( true ) ; // Set email format to HTML $ mail -> Subject = $ subject ; $ mail -> Body = $ bodyHtml ; $ mail -> AltBody = $ bodyHtmlAlt ; return $ mail -> send ( ) ; }
Send new generic email

@param array|string $email to
@param string $subject Subject
@param string $bodyHtml Body
@param string $bodyHtmlAlt
@return boolean
Send new generic email