Схема
public mixed
notifyAdmin (
$subject, $message )
Аргументы
Аргумент |
Возможный тип |
Описание |
$subject |
— |
— |
$message |
— |
— |
Описание
Метод пока еще не документирован.
Исходный код
$this->log('Sending email to: '.$this->config->get('config_email').' - notifyAdmin()');
$mail = new Mail();
$mail->protocol = $this->config->get('config_mail_protocol');
$mail->parameter = $this->config->get('config_mail_parameter');
$mail->hostname = $this->config->get('config_smtp_host');
$mail->username = $this->config->get('config_smtp_username');
$mail->password = $this->config->get('config_smtp_password');
$mail->port = $this->config->get('config_smtp_port');
$mail->timeout = $this->config->get('config_smtp_timeout');
$mail->setTo($this->config->get('config_email'));
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($this->config->get('config_name'));
$mail->setSubject($subject);
$mail->setText($message);
$mail->send();