Вынес класс в отдельный файл
This commit is contained in:
parent
7187963ac9
commit
7bbccea3b0
5 changed files with 68 additions and 62 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue