/**
  * @param srCertificate $certificate
  */
 public function __construct(srCertificate $certificate)
 {
     parent::__construct($certificate);
     $this->setEmail(ilSetting::_lookupValue('common', 'admin_email'));
     $this->setSubject($this->pl->txt('disk_space_warning_mail_subject'));
     $this->setBody(sprintf($this->pl->txt('disk_space_warning_mail_message'), disk_free_space($this->certificate->getCertificatePath())));
 }
 /**
  * @param srCertificate $certificate
  * @param string $email
  */
 public function __construct(srCertificate $certificate, $email = '')
 {
     parent::__construct($certificate, $email);
     $this->setSubject($this->pl->txt('callback_email_subject'));
     $parser = srCertificatePlaceholdersParser::getInstance();
     $body = $parser->parse($this->pl->txt('callback_email_message'), $this->certificate->getPlaceholders());
     $this->setBody($body);
 }
 /**
  * @param srCertificate $certificate
  * @param string $email
  */
 public function __construct(srCertificate $certificate, $email = '')
 {
     parent::__construct($certificate, $email);
     $this->setEmail(ilSetting::_lookupValue('common', 'admin_email'));
     $this->setSubject($this->pl->txt('cert_failed_subject'));
     $parser = srCertificatePlaceholdersParser::getInstance();
     $body = $parser->parse($this->pl->txt('cert_failed_message'), $this->certificate->getPlaceholders());
     $this->setBody($body);
 }
 /**
  * @param srCertificate $certificate
  * @param string $email
  */
 public function __construct(srCertificate $certificate, $email = '')
 {
     parent::__construct($certificate, $email);
     $parser = srCertificatePlaceholdersParser::getInstance();
     $subject = $parser->parse($this->pl->config('notification_others_subject'), $certificate->getPlaceholders());
     $body = $parser->parse($this->pl->config('notification_others_body'), $certificate->getPlaceholders());
     $this->setSubject($subject);
     $this->setBody($body);
     $this->setAttachCertificate(true);
 }