/**
  * Send an email to the site admin
  *
  * @param int|null $old_status The old indexability status.
  * @param int      $new_status The new indexability status.
  */
 public function send_email($old_status, $new_status)
 {
     $email_presenter = new WPSEO_OnPage_Email_Presenter(array('old_status' => $old_status, 'new_status' => $new_status));
     add_filter('wp_mail_content_type', array($this, 'set_content_type'));
     wp_mail(get_option('admin_email'), $email_presenter->get_subject(), $email_presenter->get_message());
     remove_filter('wp_mail_content_type', array($this, 'set_content_type'));
 }
 /**
  * Send an email to the site admin
  *
  * @param int|null $old_status The old indexability status.
  * @param int      $new_status The new indexability status.
  */
 public function send_email($old_status, $new_status)
 {
     $email_presenter = new WPSEO_OnPage_Email_Presenter(array('old_status' => $old_status, 'new_status' => $new_status));
     wp_mail(get_option('admin_email'), $email_presenter->get_subject(), $email_presenter->get_message());
 }