Don't receive emails

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
xav12358
Posts: 1
Joined: 06 Dec 2016, 10:32

Don't receive emails

Post 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 ?
atrol
Site Admin
Posts: 8376
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Don't receive emails

Post 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
Please use Search before posting and read the Manual
Post Reply