function ascHtmlMimeMail()
 {
     global $application;
     $res = parent::HtmlMimeMail();
     $mail_settings = modApiFunc("Configuration", "getMailSettings");
     if ($mail_settings['MAIL_TYPE'] == 2) {
         parent::setSMTPParams($mail_settings['MAIL_HOST'], $mail_settings['MAIL_PORT'], NULL, $mail_settings['MAIL_AUTH'] == '1', $mail_settings['MAIL_USER'], $mail_settings['MAIL_PASS']);
     }
     return $res;
 }