Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 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;
     }
 }