+ GLOBAL $G_admin_mail;
+
+ $mail = new PHPMailer(TRUE);
+ $mail->CharSet = "UTF-8";
+
+ $mail->From = $G_admin_mail;
+ $mail->FromName = 'Brisk Admin';
+ $mail->addAddress($to); // Add a recipient
+ $mail->addReplyTo($G_admin_mail, 'Brisk Admin');
+
+ $mail->Subject = $subject;
+ $mail->AltBody = $text;
+
+ $body_html = sprintf("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><title>%s</title></head><body>%s</body></html>",
+ $subject, $html);
+
+ $mail->MsgHTML($body_html);
+
+
+ return ($mail->Send());
+}
+