private function sendMailByPHPMailer() { $mail = PHPMailerService::init($this->doorGets); $mail->addAddress($this->email); $mail->WordWrap = 50; $mail->isHTML(true); $mail->Subject = $this->subject; $mail->Body = $this->messageHtml; //$mail->AltBody = ''; if ($mail->send()) { $this->isSended = true; } }
private function sendMailByPHPMailer() { $mail = PHPMailerService::init($this->doorGets); $mail->addAddress($this->email); $mail->WordWrap = 50; $mail->isHTML(true); $mail->Subject = $this->Subject; $mail->Body = Template::get('mail/wrapper', array('title' => $this->Subject, 'message' => $this->messageHtml, 'doorGets' => $this->doorGets)); //$mail->AltBody = $this->messageTxt; //$mail->addAttachment(BASE_IMG.'logo_mail.png','logo_mail.png'); if ($mail->send()) { $this->isSended = true; } }