From aa358b7efc2d3e1e4b356dd07b3d1aadb34b1a10 Mon Sep 17 00:00:00 2001 From: tassium Date: Sat, 4 Jan 2003 06:32:57 +0000 Subject: [PATCH] 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 --- class/deliver/Deliver_SMTP.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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"); -- 2.25.1