@@ -8,8 +8,8 @@ |
||
| 8 | 8 | $notification = new Email( |
| 9 | 9 | 2, |
| 10 | 10 | CONF_MAIL_HOST, // criar difine em um arquivo config.php |
| 11 | - CONF_MAIL_USER,// criar difine em um arquivo config.php |
|
| 12 | - CONF_MAIL_PASS,// criar difine em um arquivo config.php |
|
| 11 | + CONF_MAIL_USER, // criar difine em um arquivo config.php |
|
| 12 | + CONF_MAIL_PASS, // criar difine em um arquivo config.php |
|
| 13 | 13 | 'tls' |
| 14 | 14 | ); |
| 15 | 15 | |
@@ -40,14 +40,14 @@ |
||
| 40 | 40 | $this->mail = new PHPMailer(true); |
| 41 | 41 | $this->data = new \stdClass(); |
| 42 | 42 | //Server settings |
| 43 | - $this->mail->SMTPDebug = $smtpDegug; // Enable verbose debug output |
|
| 44 | - $this->mail->isSMTP(); // Send using SMTP |
|
| 45 | - $this->mail->Host = $host; // Set the SMTP server to send through |
|
| 46 | - $this->mail->SMTPAuth = true; // Enable SMTP authentication |
|
| 47 | - $this->mail->Username = $user; // SMTP username |
|
| 48 | - $this->mail->Password = $passwd; // SMTP password |
|
| 49 | - $this->mail->SMTPSecure = $smtpSecure; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS |PHPMailer::ENCRYPTION_STARTTLS` also accepted |
|
| 50 | - $this->mail->Port = $port; // TCP port to connect to |
|
| 43 | + $this->mail->SMTPDebug = $smtpDegug; // Enable verbose debug output |
|
| 44 | + $this->mail->isSMTP(); // Send using SMTP |
|
| 45 | + $this->mail->Host = $host; // Set the SMTP server to send through |
|
| 46 | + $this->mail->SMTPAuth = true; // Enable SMTP authentication |
|
| 47 | + $this->mail->Username = $user; // SMTP username |
|
| 48 | + $this->mail->Password = $passwd; // SMTP password |
|
| 49 | + $this->mail->SMTPSecure = $smtpSecure; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS |PHPMailer::ENCRYPTION_STARTTLS` also accepted |
|
| 50 | + $this->mail->Port = $port; // TCP port to connect to |
|
| 51 | 51 | $this->mail->CharSet = $charSEt; |
| 52 | 52 | $this->mail->setLanguage($language); |
| 53 | 53 | $this->mail->isHTML(true); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | ) { |
| 40 | 40 | $this->mail = new PHPMailer(true); |
| 41 | - $this->data = new \stdClass(); |
|
| 41 | + $this->data = new \stdClass(); |
|
| 42 | 42 | //Server settings |
| 43 | 43 | $this->mail->SMTPDebug = $smtpDegug; // Enable verbose debug output |
| 44 | 44 | $this->mail->isSMTP(); // Send using SMTP |
@@ -99,8 +99,8 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | try { |
| 101 | 101 | $this->mail->Subject = $this->data->subject; |
| 102 | - $this->mail->msgHTML($this->data->body); |
|
| 103 | - $this->mail->addAddress($this->data->recipient_email, $this->data->recipient_name); |
|
| 102 | + $this->mail->msgHTML($this->data->body); |
|
| 103 | + $this->mail->addAddress($this->data->recipient_email, $this->data->recipient_name); |
|
| 104 | 104 | $this->mail->setFrom($from, $fromName); |
| 105 | 105 | |
| 106 | 106 | |