<div dir="ltr">Does this help - <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8297#comment:5">http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8297#comment:5</a></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><b>Connect with us on: </b><a href="http://twitter.com/vtigercrm" style="color:rgb(0,0,204)" target="_blank">Twitter</a> <b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a href="https://blogs.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/vtiger6/index.php/Main_Page" style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I</b> <a href="https://www.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></span></div></div>
<br><div class="gmail_quote">On Mon, Oct 20, 2014 at 7:11 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Think Alan Bell found it!<br>
<br>
In mail.php, around line 291 $smtp_auth is set to a pear db result object.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
else{<br>
$smtp_auth = $adb->query_result($res,0,'<u></u>smtp_auth');<br>
if($smtp_auth == "1" || $smtp_auth == "true"){<br>
$smtp_auth = true;<br>
}<br>
}<br>
<br>
$adb->println("Mail server name,username & password => '".$server."','".$username."',<u></u>'".$password."'");<br>
if($smtp_auth){<br>
$mail->SMTPAuth = true; // turn on SMTP authentication<br>
}<br>
</blockquote>
<br>
After the $adb->println() call it is only being checked for not being false or null...<br>
<br>
Looks like there should be an else in that first test...<br>
<br>
So:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
else{<br>
$smtp_auth = $adb->query_result($res,0,'<u></u>smtp_auth');<br>
if($smtp_auth == "1" || $smtp_auth == "true"){<br>
$smtp_auth = true;<br>
} else {<br>
</blockquote>
$smtp_auth = false;<br>
}<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
}<br>
</blockquote>
<br>
...<br>
<br>
And so on.<br>
<br>
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>