Skip to content

Commit

Permalink
#289 -- Envio de e-mails não está funcionando
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonmoura committed Jun 7, 2023
1 parent a8018e6 commit 0a58ebe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/classes/Tools.php
Expand Up @@ -103,7 +103,7 @@ public static function sendMail($body,$altbody,$subject,$to,$fromMail=EMAIL_FROM
$objMailer->Username = EMAIL_USERNAME;
$objMailer->Password = EMAIL_PASSWORD;
$objMailer->IsSMTP();
$objMailer->SMTPAuth = EMAIL_SMTP_AUTH;
$objMailer->SMTPAuth = EMAIL_SMTP_AUTH;
if ( EMAIL_PORT ) {
$objMailer->Port = EMAIL_PORT;
}
Expand All @@ -117,10 +117,10 @@ public static function sendMail($body,$altbody,$subject,$to,$fromMail=EMAIL_FROM
}
$objMailer->Subject = mb_encode_mimeheader($subject, CHARSET);
$objMailer->Body = $body;
$objMailer->AltBody = $altbody;
$objMailer->AltBody = $altbody;
if ( EMAIL_DEBUG ) {
$objMailer->SMTPDebug = 2;
}
}

if(!$objMailer->Send()){
$retValue = false;
Expand Down

0 comments on commit 0a58ebe

Please sign in to comment.