View Issue Details

IDProjectCategoryView StatusLast Update
0017631mantisbtemailpublic2014-09-20 09:13
Reporterpl.khor Assigned Todregad  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionunable to reproduce 
OSMS WindowOS VersionWindow 7 
Product Version1.2.17 
Summary0017631: Test email return send successful but no email received
Description

New installation. I tried to run send email from http://localhost/mantisbt/admin/test_email.php. Result returned 'Testing Mail - mail() send successful.' after click on Send Mail button but that is no email received.

Tested on forget password as well and also returning same result which is no email received.

Additional Information

It is confirmed that php and phpmailer is working as tested with the script below that email is successfully sent and received:

<?php
require("class.phpmailer.php");
//include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded

$mail = new PHPMailer();

$body = "This is email from smtp google";

$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "192.168.XX.XX"; // SMTP server
$mail->SMTPDebug = 1; // enables SMTP debug information (for testing)
// 1 = errors and messages
// 2 = messages only
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "tls"; // sets the prefix to the servier
$mail->Host = "192.168.XX.XX"; // sets the SMTP server
$mail->Port = 25; // set the SMTP port for the GMAIL server
$mail->Username = "pl.khor@xxx.com"; // username
$mail->Password = "password"; // password

$mail->SetFrom('pl.khor@xxx.com', 'First Last');

$mail->AddReplyTo("pl.khor@xxx.com","First Last");

$mail->Subject = "PHPMailer Test Subject via smtp , basic";

$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test

$mail->MsgHTML($body);

$address = "pl.khor@xxx.com";
$mail->AddAddress($address, "kpl");

if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Message sent!";
}

?>

TagsNo tags attached.

Activities

pl.khor

pl.khor

2014-09-03 01:29

reporter   ~0041156

SMTP config in config_inc.php:

$g_administrator_email = 'pl.khor@xxx.com';
$g_webmaster_email = 'pl.khor@xxx.com';
$g_from_email = 'pl.khor@xxx.com';
$g_return_path_email = 'pl.khor@xxx.com';

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = '192.168.XX.XX';
$g_smtp_username = 'pl.khor@xxx.com';
$g_smtp_password = 'password';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 25;

dregad

dregad

2014-09-08 05:38

developer   ~0041187

I cannot reproduce this, emails are being sent (and received) without errors, so most likely it's a problem with your local config. If the problem persists, do not hesitate to reopen the issue, with additional relevant information.