Вынес класс в отдельный файл

This commit is contained in:
Фёдор Подлеснов 2018-01-30 15:31:18 +03:00
parent 7187963ac9
commit 7bbccea3b0
5 changed files with 68 additions and 62 deletions

View file

@ -3,6 +3,7 @@
class MailAlt
{
public $mailer;
public $_notify;
function __construct() {
$this->mailer = new PHPMailer();
@ -35,7 +36,7 @@ class MailAlt
*/
function copy($name) // recipient cc
{
$this->addCC($name);
$this->mailer->addCC($name);
}
function notify($notify)
@ -87,4 +88,8 @@ class MailAlt
{
return $this->mailer->send();
}
function eml() {
return $this->mailer->getSentMIMEMessage();
}
}