The mail function is not working with gmail

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
victorchen
Posts: 2
Joined: 20 Jun 2022, 09:01

The mail function is not working with gmail

Post by victorchen »

Hello Everyone,

Here is the profile:
XAMPP V3.3.0
Mantis 2.25.2

Everything was going fine before Jun / 2022, but after that the mail notification function is not working,
it seems cause by Google(gmail) change the policy about account authentication,
third application can't access gmail smtp server with user account and password directly.

Dose anyone meet and fix this situation ?
Any reply would be appreciated.
fmildemberger
Posts: 25
Joined: 19 May 2020, 16:58

Re: The mail function is not working with gmail

Post by fmildemberger »

I was having the same problem, I just installed mantis in a company, I created the email in gmail but it doesn't send any email. I tested with sendmail and everything was ok but when I create a user, he should send an email to the registered email of this new user for him to change or register the password and nothing happens... has anyone else had this? Any solution?

config_inc.php
#Email configuration 192.168.1.158
$g_phpMailer_method = PHPMAILER_METHOD_SMTP; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host = 'smtp.gmail.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_port = 587;
#$g_smtp_connection_mode = 'tls';
$g_smtp_username = 'emailenterprise@gmail.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_password = '*******@'; # used with PHPMAILER_METHOD_SMTP
$g_webmaster_email = 'emailenterprise@gmail.com';
$g_from_email = 'emailenterprise@gmail.com'; # the "From: " field in emails
$g_return_path_email = 'emailenterprise'; # the return address for bounced mail
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:email.log';
Post Reply