Hello,
I am having difficulty configuring my SMTP settings/Mantis config to work fully with email. When sending email via http://localhost/admin/test_email.php the email sends fine I receive "Your PHP mail settings appear to be correctly set.". However this is the only email that I can get mantis to send, none on forgotten password or new user creation.
I am running mantis 1.2.17 hosted on IIS 8 (windows server 2012), MySQL 5.5 PHP 5.6.0.
Here is my config_inc.php
<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker';
$g_db_username = '*****';
$g_db_password = '*****';
$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 = 'hostname';
//$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 25;
//$g_smtp_username = 'test@test.com'; //replace it with your gmail address
//$g_smtp_password = 'enterpassword'; //replace it with your gmail password
$g_administrator_email = 'email@domain'; //this will be your administrator email address
$g_webmaster_email = "email@domain";
$g_from_email = 'email@domain';
?>
Many thanks
David
test_email.php works but no other email does
Moderators: Developer, Contributor
-
- Posts: 2
- Joined: 20 Oct 2014, 10:59
Re: test_email.php works but no other email does
I managed to get email notifications working by configuring the mail settings to smtp.gmail.com, I suspect the issue is with the smtp authentication.
So I'm guessing that when using test_emails.php it uses phpSendMail instead of smtp?
So I'm guessing that when using test_emails.php it uses phpSendMail instead of smtp?
Re: test_email.php works but no other email does
Can you post your test_mail.php?
-
- Posts: 5
- Joined: 15 Dec 2017, 17:18
Re: test_email.php works but no other email does
Hi, could you give me your file test_email.php please, I had a problem with sending mail.
Thanks
Thanks