示例#1
0
 /**
  * @internal Actual email dispatcher.
  * 
  * @param type $subject		Email subject value
  * @param type $to			Email recipient value
  * @param type $txtbody		Email text body value
  * @param type $htmlbody	Email html body value
  * @param type $username	Smtp username value
  * @param type $password	Smtp username value
  * @param type $replyto		Email replyto value
  * @param type $attachment	Email attachment data
  * @param type $cc			Email carbon copies
  * @param type $ext			Email extended header data
  */
 private static function sendEmail($subject, $to, $txtbody = '', $htmlbody = '', $username = null, $password = null, $replyto = false, $attachment = null, $cc = false, $ext = null)
 {
     if (EmailService::canUse()) {
         sendMultipartMail($subject, $to, $txtbody, $htmlbody, $username, $password, $replyto, $attachment, $cc, $ext);
     } else {
         EmailUtils::emailToLog($subject, $to, $txtbody, $htmlbody, $replyto, $cc, $ext);
     }
 }