small fix to authenticated smtp
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 13 Apr 2001 16:05:07 +0000 (16:05 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 13 Apr 2001 16:05:07 +0000 (16:05 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1227 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/smtp.php

index 6b53378749bf4e659fe50acf586be1094f81f49c..87580db5720b69326a44e5653a8c557f88c51cd9 100644 (file)
 
    function sendSMTP($t, $c, $b, $subject, $body, $more_headers) {
       global $username, $popuser, $domain, $version, $smtpServerAddress, $smtpPort,
-         $data_dir, $color, $use_authenticating_smtp;
+         $data_dir, $color, $use_authenticated_smtp;
 
       $to = expandAddrs(parseAddrs($t));
       $cc = expandAddrs(parseAddrs($c));
       $cc_list = getLineOfAddrs($cc);
 
       /** Lets introduce ourselves */
-      if (! isset ($use_authenticating_smtp)) {
+      if (! isset ($use_authenticated_smtp) && $use_authenticated_smtp == true) {
          fputs($smtpConnection, "HELO $domain\r\n");
          $tmp = fgets($smtpConnection, 1024);
          errorCheck($tmp, $smtpConnection);