@@ -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 |
@@ -108,13 +108,13 @@ discard block |
||
108 | 108 | |
109 | 109 | if (!$this->is_email($from)) { |
110 | 110 | echo "<b>O e-mail de remetente não é válido:</b> "; |
111 | - return false; |
|
111 | + return false; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | try { |
115 | 115 | $this->mail->Subject = $this->data->subject; |
116 | - $this->mail->msgHTML($this->data->body); |
|
117 | - $this->mail->addAddress($this->data->recipient_email, $this->data->recipient_name); |
|
116 | + $this->mail->msgHTML($this->data->body); |
|
117 | + $this->mail->addAddress($this->data->recipient_email, $this->data->recipient_name); |
|
118 | 118 | $this->mail->setFrom($from, $fromName); |
119 | 119 | |
120 | 120 |
@@ -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); |