public static function sendHtmlEmail (\stdClass $emailBody, \stdClass $to, \stdClass $from, \stdClass $replyTo, $SMTPConfig='') : bool
	{
		$mail = new PHPMailer;
		static::setSMTPConfig($mail, $SMTPConfig);
	    $mail->Subject 	= $emailBody->subject;
	    $mail->MsgHTML($emailBody->messageBody);
	    $mail->addAddress($to->email, $to->name);
	    $mail->setFrom($from->email, $from->name);
		$mail->addReplyTo($replyTo->email, $replyTo->name);
		static::$result 		= $mail->send();
		static::$errorMessage 	= $mail->ErrorInfo;
	    return static::$result ? TRUE : FALSE;
	}
public static function sendHtmlEmail (\stdClass $emailBody, \stdClass $to, \stdClass $from, \stdClass $replyTo, $SMTPConfig='') : bool
	{
		$mail = new PHPMailer;
		static::setSMTPConfig($mail, $SMTPConfig);
	    $mail->Subject 	= $emailBody->subject;
	    $mail->MsgHTML($emailBody->messageBody);
	    $mail->addAddress($to->email, $to->name);
	    $mail->setFrom($from->email, $from->name);
		$mail->addReplyTo($replyTo->email, $replyTo->name);
		static::$result 		= $mail->send();
		static::$errorMessage 	= $mail->ErrorInfo;
	    return static::$result ? TRUE : FALSE;
	}
public static function sendHtmlEmail ( \ stdClass $ emailBody , \ stdClass $ to , \ stdClass $ from , \ stdClass $ replyTo , $ SMTPConfig = '' ) : bool { $ mail = new PHPMailer ; static :: setSMTPConfig ( $ mail , $ SMTPConfig ) ; $ mail -> Subject = $ emailBody -> subject ; $ mail -> MsgHTML ( $ emailBody -> messageBody ) ; $ mail -> addAddress ( $ to -> email , $ to -> name ) ; $ mail -> setFrom ( $ from -> email , $ from -> name ) ; $ mail -> addReplyTo ( $ replyTo -> email , $ replyTo -> name ) ; static :: $ result = $ mail -> send ( ) ; static :: $ errorMessage = $ mail -> ErrorInfo ; return static :: $ result ? TRUE : FALSE ; }
Sends Html Email
@param \stdClass $emailBody
@param \stdClass $to
@param \stdClass $from
@param \stdClass $replyTo
@param \stdClass $SMTPConfig
@return bool
Sends Html Email