Page 1 of 1

Don't receive emails

Posted: 06 Dec 2016, 10:37
by xav12358
Hello,

I recently install mantisBT on my computer and I don't receive email from the server. I configure the config_inc.php file like this:

Code: Select all

<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'mantisbt_bug';
$g_db_username = 'mantisbt_bug';
$g_db_password = 'mantisbt_bug';

$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_username        = 'xavier@gmail.com';                    # used with PHPMAILER_METHOD_SMTP
$g_smtp_password        = 'mypassword';                 # used with PHPMAILER_METHOD_SMTP
$g_administrator_email  = 'xavier@gmail.com';
$g_webmaster_email      = 'xavier@gmail.com';
$g_from_email           = 'xavier@gmail.com';    # the "From: " field in emails
$g_return_path_email    = 'xavier@gmail.com';  # the return address for bounced mail
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
$g_enable_email_notification   = ON;
$g_email_receive_own   = ON;
$g_validate_email      = OFF;
$g_allow_signup    = ON;  //allows the users to sign up for a new account
I don't understand why this don't work properly.

Can someone help me ?

Re: Don't receive emails

Posted: 07 Dec 2016, 12:51
by atrol
Maybe setting $g_from_email helps.
Run also admin/check/index.php and check for email related errors and warnings

Reading this might help
http://www.mantisbt.org/forums/viewtopi ... =3&t=15398