/**
  * send_admin_email
  * 
  * Sends an error warning email to the wordpress admin
  * 
  * @access 	private
  * @author	Ben Moody
  */
 private function send_admin_email($errorMsg)
 {
     PrsoSyndToolkitReader::send_admin_email($errorMsg);
 }
 /**
  * send_admin_email
  * 
  * Sends an error warning email to the wordpress admin
  * 
  * @access 	private
  * @author	Ben Moody
  */
 public static function send_admin_email($error_msg, $error_type = 'pull_error', $admin_email = NULL)
 {
     //Init vars
     $inc_templates = PRSOSYNDTOOLKITREADER__PLUGIN_DIR . "inc/templates/email/{$error_type}.php";
     $subject = NULL;
     $headers = array();
     $message = NULL;
     if (file_exists($inc_templates)) {
         //send admin an email to let them know
         if (empty($admin_email)) {
             $admin_email = get_option('admin_email');
         }
         //Set email content
         $subject = _x('WP Content Syndication Toolkit', 'text', PRSOSYNDTOOLKITREADER__DOMAIN);
         ob_start();
         include_once $inc_templates;
         $message = ob_get_contents();
         ob_end_clean();
         //Send Email to admin
         wp_mail($admin_email, $subject, $message);
         //Error log
         PrsoSyndToolkitReader::plugin_error_log($message);
         return;
     }
 }