Exemplo n.º 1
0
 public function __construct($isCritical, $iBlockId, $elementName = NULL, $fieldsUppercase = TRUE)
 {
     parent::__construct($isCritical);
     $this->iBlockId = $iBlockId;
     $this->elementName = $elementName;
     $this->fieldsUppercase = $fieldsUppercase;
 }
Exemplo n.º 2
0
 public function __construct($isCritical, $body, array $to = array(), array $from = array(), $subject = NULL, array $files = array())
 {
     parent::__construct($isCritical);
     $this->to = $to ? $to : array(cp_get_site_email());
     $this->from = $from ? $from : array("noreply@{$_SERVER['HTTP_HOST']}");
     $this->subject = @coalesce($subject, 'Сообщение на ' . $_SERVER['HTTP_HOST']);
     $this->body_template = $body;
     $this->files = $files;
     require_once $_SERVER['DOCUMENT_ROOT'] . '/lib/php-mailer/PHPMailerAutoload.php';
     $this->mailer = new \PHPMailer();
 }
 public function __construct($isCritical, $emailEvent, $fieldsUppercase = TRUE)
 {
     parent::__construct($isCritical);
     $this->emailEvent = $emailEvent;
     $this->fieldsUppercase = $fieldsUppercase;
 }