Skip to content

Commit

Permalink
#282 -- Envio de emails automáticos não está funcionando
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonmoura committed Apr 6, 2022
1 parent 507f347 commit caba23d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/classes/Tools.php
Expand Up @@ -104,6 +104,9 @@ public static function sendMail($body,$altbody,$subject,$to,$fromMail=EMAIL_FROM
$objMailer->Password = EMAIL_PASSWORD;
$objMailer->IsSMTP();
$objMailer->SMTPAuth = true;
if ( EMAIL_PORT ) {
$objMailer->Port = EMAIL_PORT;
}
if ( EMAIL_SECURE && in_array(EMAIL_SECURE, array('ssl', 'tls')) ) {
$objMailer->SMTPSecure = EMAIL_SECURE;
}
Expand Down
1 change: 1 addition & 0 deletions server/config.php.template
Expand Up @@ -112,6 +112,7 @@ define('LOG_FILE_MAIL',APP_BASEDIR.'/mail.log');
define("EMAIL_HOST",'pombo.bireme.br');
define("EMAIL_FROM",'appservplat@bireme.org');
define("EBLUEINFO_EMAIL_FROM",'eblueinfo@bireme.org');
define("EMAIL_PORT",'');
define("EMAIL_SECURE",'');
define("EMAIL_USERNAME",'');
define("EMAIL_PASSWORD",'');
Expand Down

0 comments on commit caba23d

Please sign in to comment.