Please read this if you have problems with emails
Posted: 02 Dec 2010, 16:38
Mantis Email settings
Configuring the email settings is challenging task for most of the users start working with Mantis. The confusion is partially caused because PHP (so therefore Mantis) does not give you a very precise description about why it can not deliver emails.
The goal of this topic is to show you how to configure your mantis to work with gmail (so register a gmail account if you dont have one). Once you made it work with gmail you can make sure your system is capable to deliver the emails, so then you can apply your own settings (you may want to use yahoo mail, or your company enviroment)
Most of the cases the configuration is very easy:
1, open your config_inc.php (located in: <XAMPP>\htdocs\mantis\ or <WAMP>\www\mantis\ )
2, copy the following code to the file:
3, go to your Mantis homepage (http://localhost/mantis)
4, click sign up for a new account
5, create a dummy account with your gmail address
6, press Signup
7, check your mail
If everything is alright then you have received an email which proves that your system is installed properly and capable to send emails. From this point it is your task to figure out the smtp settings of the system you want to use. (so the settings are different for lets say the yahoo mail)
What to do if you still dont receive emails?
- Check if you use right gmail account and password
- If you are about to use gmail then you may have to authenticate mantis to access to your account. You can do this in you gmail account by going to your account -> security -> scroll down to Connected applications and sites and click manage access. If you are using this security feature of gmail then you have to use the generated password in your config_inc.php
- If you are using XAMPP then make sure you have enabled the openssl service by checking your /xampp/php/php.ini for the following line: extension=php_openssl.dll; if it does not exist then shut down the http service, add the line and restart the http service.
- If you are using WAMP server then make sure you have enabled the Apache >>Apache modules>>ssl_module AND PHP>>Php extensions>>php_openssl
- You can try to call the built in test_email page from your browser at http://localhost/mantis/admin/test_email.php (this one actually tries to send an email to the address defined with $g_administrator_email [see above])
- If you are about to use gmail then you may have to authenticate mantis to access to your account. You can do this in you gmail account by going to your account -> security -> scroll down to Connected applications and sites and click manage access. If you are using this security feature of gmail then you have to use the generated password in your config_inc.php
If you still have problems with the emails you can try to create a purely php solution.
1, Unzip the attached file and copy the 'testmail.php' file in your htdocs (XAMPP) or www (WAMP) folder
2, Open it in notepad and edit the email address and the password
3, go to a browser and call the file (like http://localhost/testmail.php)
4, check your inbox
Please proceed these steps before asking for further help.
Configuring the email settings is challenging task for most of the users start working with Mantis. The confusion is partially caused because PHP (so therefore Mantis) does not give you a very precise description about why it can not deliver emails.
The goal of this topic is to show you how to configure your mantis to work with gmail (so register a gmail account if you dont have one). Once you made it work with gmail you can make sure your system is capable to deliver the emails, so then you can apply your own settings (you may want to use yahoo mail, or your company enviroment)
Most of the cases the configuration is very easy:
1, open your config_inc.php (located in: <XAMPP>\htdocs\mantis\ or <WAMP>\www\mantis\ )
2, copy the following code to the file:
Code: Select all
$g_allow_signup = ON; //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 = 'tls';
$g_smtp_port = 587;
$g_smtp_username = 'youraccount@gmail.com'; //replace it with your gmail address
$g_smtp_password = '*********'; //replace it with your gmail password
$g_administrator_email = 'youradmin@whatever.com'; //this will be your administrator email address
4, click sign up for a new account
5, create a dummy account with your gmail address
6, press Signup
7, check your mail
If everything is alright then you have received an email which proves that your system is installed properly and capable to send emails. From this point it is your task to figure out the smtp settings of the system you want to use. (so the settings are different for lets say the yahoo mail)
What to do if you still dont receive emails?
- Check if you use right gmail account and password
- If you are about to use gmail then you may have to authenticate mantis to access to your account. You can do this in you gmail account by going to your account -> security -> scroll down to Connected applications and sites and click manage access. If you are using this security feature of gmail then you have to use the generated password in your config_inc.php
- If you are using XAMPP then make sure you have enabled the openssl service by checking your /xampp/php/php.ini for the following line: extension=php_openssl.dll; if it does not exist then shut down the http service, add the line and restart the http service.
- If you are using WAMP server then make sure you have enabled the Apache >>Apache modules>>ssl_module AND PHP>>Php extensions>>php_openssl
- You can try to call the built in test_email page from your browser at http://localhost/mantis/admin/test_email.php (this one actually tries to send an email to the address defined with $g_administrator_email [see above])
- If you are about to use gmail then you may have to authenticate mantis to access to your account. You can do this in you gmail account by going to your account -> security -> scroll down to Connected applications and sites and click manage access. If you are using this security feature of gmail then you have to use the generated password in your config_inc.php
If you still have problems with the emails you can try to create a purely php solution.
1, Unzip the attached file and copy the 'testmail.php' file in your htdocs (XAMPP) or www (WAMP) folder
2, Open it in notepad and edit the email address and the password
3, go to a browser and call the file (like http://localhost/testmail.php)
4, check your inbox
Please proceed these steps before asking for further help.