Bug #17631 [Com]: SMTP Auth never returns

From: Date: Wed, 01 Sep 2021 18:43:49 +0000
Subject: Bug #17631 [Com]: SMTP Auth never returns
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236279@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=17631&edit=1 ID: 17631 Comment by: lildurk17631 at gmail dot com Reported by: scarr at progbits dot com Summary: SMTP Auth never returns Status: Closed Type: Bug Package: PEAR related Operating System: WIN2k PHP Version: 4.2.1 Block user comment: N Private report: N New Comment: Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults aged 19 and older. We’re an exclusively online retailer and wholesaler for recreational cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe our work is meaningful and we take pride in our mandate to promote the socially responsible use of legal cannabis. https://lildurk.com/ Previous Comments: ------------------------------------------------------------------------ [2002-06-07 02:07:16] cox@php.net Fixed in CVS. Thanks Scott. Tomas V.V.Cox ------------------------------------------------------------------------ [2002-06-06 14:44:37] scarr at progbits dot com Net/SMTP.php has an error in the Auth code. If you set $params['auth'] = true; then the script never returns. The problem exists in the following two lines: *Line 138* if (PEAR::isError($this->socket->write(base64_encode($uid) . "\n"))) { return new PEAR_Error('write to socket failed'); } *Line 141* if (PEAR::isError($this->socket->write(base64_encode($uid) . "\n"))) { return new PEAR_Error('write to socket failed'); } Notice the \n instead of \r\n. This causes the SMTP server to hang waiting for a valid line termination response. SOLUTION: Change \n to \r\n and AUTH works fine. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=17631&edit=1

« previous php.bugs (#236279) next »