View Issue Details

IDProjectCategoryView StatusLast Update
0005006mantisbtemailpublic2008-02-21 06:35
Reporterjkpalmer Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version0.19.1 
Summary0005006: phpMailer - SMTP Error: Could not authenticate
Description

I have successfully sent email to my SMTP server using the "tester" supplied with the phpMailer 1.72 that I installed in my c:\php\includes to confirm my settings were correct. When I attempt to mail using Mantis, I receive the error - SMTP Error: Could not authenticate.

Not a real strong PHPer. I'm pretty much lost at this point.

Additional Information

Configured Mantis with (fictional) parameters below that matched (I've checked and re-checked!!!) my tester:

$g_phpMailer_method = 2;
$g_smtp_host = 'myhostname';
$g_smtp_username = 'MyUser';
$g_smtp_password = 'MyPassword';

Tester - located in c:\php\includes and this works:

<?php
require("class.phpmailer.php");

$mail = new PHPMailer();

$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "myhostname"; // specify main and backup server
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "MyUser"; // SMTP username
$mail->Password = "MyPassword"; // SMTP password

$mail->From = "noreply@myhost.com";
$mail->FromName = "Mantis Issue Tracker";
$mail->AddAddress("zzz@yyy.com", "Me");

$mail->WordWrap = 50; // set word wrap to 50 characters

$mail->Subject = "Test phpMailer";
$mail->Body = "This is the HTML message body in bold!";
$mail->AltBody = "This is the body in plain text for non-HTML mail clients";

if(!$mail->Send())
{
echo "Message could not be sent.

";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}

echo "Message has been sent";
?>

TagsNo tags attached.

Relationships

child of 0004937 closedvboctor Mantis 1.0.0a1 Release 

Activities

thraxisp

thraxisp

2005-04-14 10:55

reporter   ~0009813

I can't reproduce this issue in 0.19.2 or CVS HEAD. Is it still a problem?

giallu

giallu

2008-02-21 06:35

reporter   ~0017142

Cleaning up older phpmailer related problems.

If you believe this is still an issue, feel free to reopen