Hi!
I am currently writing a script for our Mantis Tracker. It's supposed to send emails and I'm a bit stuck on this part because the composed email is saved in the database but I am unable to receive the email.
I'm still testing the script so I'm running on my localhost. Below is my configurations
$g_hostname = 'localhost';
$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 = 2;
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
$g_administrator_email = 'mygmailaccount@gmail.com';
$g_smtp_username = 'mygmailaccount@gmail.com';
$g_smtp_password = '******';
$g_log_level = LOG_EMAIL;
I've tried several solutions I found on the net but nothing works in my mine. So what could possibly the problem?
I've also tried to send a mail using the Mantis testmail function but I this error shows: PROBLEMS SENDING MAIL TO: mygmailaccount@gmail.com. Please check your php/mail server settings.
Running on localhost. Unable receive an email.
Moderators: Developer, Contributor
-
MisterBushido
- Posts: 5
- Joined: 22 Mar 2016, 01:44
-
MisterBushido
- Posts: 5
- Joined: 22 Mar 2016, 01:44
Re: Running on localhost. Unable receive an email.
^^ That actually helped when I ran a test NOT using Mantis. But when I tried my script in Mantis. Still not able to receive email.
-
MisterBushido
- Posts: 5
- Joined: 22 Mar 2016, 01:44
Re: Running on localhost. Unable receive an email.
I'm pretty sure it's within Mantis because I am receiving email from my test scripts (outside Mantis).