Very ugly hack to add rudimentary error check to SMTP for invalid/unsupported auth...
authortassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 4 Jan 2003 06:32:57 +0000 (06:32 +0000)
committertassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 4 Jan 2003 06:32:57 +0000 (06:32 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4378 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/deliver/Deliver_SMTP.class.php

index 09a6bf93555812177b4964943a0bd740fc459675..fb58c0319d3fdd2179efab8fa15945e43d30c224 100644 (file)
@@ -128,7 +128,14 @@ class Deliver_SMTP extends Deliver {
          if ($this->errorCheck($tmp, $stream)) {
        return(0);
          }
-       }
+       } else {
+               /* Right here, they've reached an unsupported auth mechanism.
+                  This is the ugliest hack I've ever done, but it'll do till I can fix
+                  things up better tomorrow.  So tired... */
+               if ($this->errorCheck("535 Unable to use this auth type",$stream)) {
+                       return(0);
+               }
+    }
     
        /* Ok, who is sending the message? */
         fputs($stream, 'MAIL FROM: <'.$from->mailbox.'@'.$from->host.">\r\n");