Problems with the send email --- Urgent

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
gfernandez
Posts: 5
Joined: 15 Dec 2017, 17:18

Problems with the send email --- Urgent

Post by gfernandez »

Good afternoon, I have the mantisbt 2.0.0 configured on my IIS server, I have been working normally until last week, but for today's day I verified that the mailings are not being made when assigning incidents, changing the password, etc. .
The configuration made for sending mail is as follows:

$g_allow_signup = OFF; //allows the users to sign up for a new account
$g_enable_email_notification = ON; //enables the email messages
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
$g_smtp_username = 'touchmobile.peru@gmail.com'; //replace it with your gmail address
$g_smtp_password = '******'; //replace it with your gmail password

It should be noted that the email provided is enabled with less secure access to the application.
gfernandez
Posts: 5
Joined: 15 Dec 2017, 17:18

Re: Problems with the send email --- Urgent

Post by gfernandez »

when I make the testing mail, mantis returns the following: Testing Mail - PROBLEMS SENDING MAIL TO: ghocramf@gmail.com. Please check your php/mail server settings.
rkarmann
Posts: 66
Joined: 24 Nov 2017, 10:00
Location: Lille, France

Re: Problems with the send email --- Urgent

Post by rkarmann »

Hi there,

So that we can help you, can you provide your logging informations if logging's enabled ?

If not, see the conf file :

Code: Select all

- $g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT; 
- $g_log_destination = 'path_for_the_log/mantisbtlog';
Check http://www.mantisbt.org/docs/master/en- ... ig.logging for more details.
Currently working on a wiki-based plugin for MantisBT 2.X. If you'd like to test it, contact me or see the plugin section.
gfernandez
Posts: 5
Joined: 15 Dec 2017, 17:18

Re: Problems with the send email --- Urgent

Post by gfernandez »

I created and configured my logfile mantisbt.log but it's always empty

the configuration in config_inc.php is:

$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'C:/inetpub/logs/mantisbt.log';
Starbuck
Posts: 219
Joined: 14 Feb 2006, 02:53
Location: USA
Contact:

Re: Problems with the send email --- Urgent

Post by Starbuck »

Try

Code: Select all

file:/inetpub/...
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problems with the send email --- Urgent

Post by atrol »

Should be

Code: Select all

$g_log_destination = 'file:C:/inetpub/logs/mantisbt.log';
Please use Search before posting and read the Manual
gfernandez
Posts: 5
Joined: 15 Dec 2017, 17:18

Re: Problems with the send email --- Urgent

Post by gfernandez »

atrol wrote:Should be

Code: Select all

$g_log_destination = 'file:C:/inetpub/logs/mantisbt.log';


Thanks, the log shows me the following:

2018-01-24 11:08 EST MAIL email_api.php:566 email_send_confirm_hash_url() Password reset for user @U2 sent to ghocramf@gmail.com
2018-01-24 11:08 EST MAIL email_api.php:1389 email_send() ERROR: Message could not be sent - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
2018-01-24 11:08 EST MAIL email_api.php:1389 email_send() ERROR: Message could not be sent - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
2018-01-24 11:08 EST MAIL email_api.php:1389 email_send() ERROR: Message could not be sent - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
2018-01-24 11:08 EST MAIL email_api.php:1389 email_send() ERROR: Message could not be sent - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
2018-01-24 11:08 EST MAIL email_api.php:1389 email_send() ERROR: Message could not be sent - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
2018-01-24 11:08 EST MAIL email_api.php:1389 email_send() ERROR: Message could not be sent - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
2018-01-24 11:08 EST MAIL email_api.php:1389 email_send() ERROR: Message could not be sent - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
2018-01-24 11:08 EST MAIL email_api.php:1389 email_send() ERROR: Message could not be sent - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
2018-01-24 11:08 EST MAIL email_api.php:1389 email_send() ERROR: Message could not be sent - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
2018-01-24 11:08 EST MAIL email_api.php:1389 email_send() ERROR: Message could not be sent - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
2018-01-24 11:08 EST MAIL email_api.php:1389 email_send() ERROR: Message could not be sent - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
2018-01-24 11:11 EST MAIL email_api.php:1389 email_send() ERROR: Message could not be sent - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problems with the send email --- Urgent

Post by atrol »

There is not that much more to say than what you see already.
SMTP connect fails, follow the PHPMailer troubleshooting guide to find out the root cause.
Please use Search before posting and read the Manual
Post Reply