Running on localhost. Unable receive an email.

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
MisterBushido
Posts: 5
Joined: 22 Mar 2016, 01:44

Running on localhost. Unable receive an email.

Post by MisterBushido »

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

Re: Running on localhost. Unable receive an email.

Post by atrol »

Please use Search before posting and read the Manual
MisterBushido
Posts: 5
Joined: 22 Mar 2016, 01:44

Re: Running on localhost. Unable receive an email.

Post by MisterBushido »

^^ 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.

Post by MisterBushido »

I'm pretty sure it's within Mantis because I am receiving email from my test scripts (outside Mantis).
Post Reply