From: tassium Date: Sat, 4 Jan 2003 06:32:57 +0000 (+0000) Subject: Very ugly hack to add rudimentary error check to SMTP for invalid/unsupported auth... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=aa358b7efc2d3e1e4b356dd07b3d1aadb34b1a10;p=squirrelmail.git Very ugly hack to add rudimentary error check to SMTP for invalid/unsupported auth types. I don't like it, not one bit. It will do until I can fix up a better solution tomorrow though, right now I'm very tired and it's time for bed.. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4378 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/class/deliver/Deliver_SMTP.class.php b/class/deliver/Deliver_SMTP.class.php index 09a6bf93..fb58c031 100644 --- a/class/deliver/Deliver_SMTP.class.php +++ b/class/deliver/Deliver_SMTP.class.php @@ -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");