Commit 942a0475f8adfc47304cc4c948b9b0d0f592af1a

Authored by Leandro Arndt
1 parent ec7ce265
Exists in master

Correção de PHPMailerSendMail(...) para pegar os dados de config.php

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
inc/security.php
... ... @@ -65,8 +65,8 @@ function PHPMailerSendMail($to, $subject, $body, $from="", $fromname=""){
65 65 $mail->Host = MAIL_HOST; //hostname ou IP do Servidor
66 66 $mail->SMTPAuth = SMTP_AUTH; //Caso seu email precise de autenticação, no nosso caso não.
67 67 if (SMTP_AUTH) {
68   - $mail->Username = "seuemail@dominio.com";
69   - $mail->Passowrd = "sua senha";
  68 + $mail->Username = SMTP_USER;
  69 + $mail->Password = SMTP_PWD;
70 70 }
71 71 if(empty($from)){
72 72 $sql = "SELECT nomeremetenteemail, emailremetente FROM lda_configuracao";
... ...