Re: [imp] a PATCH to PEAR Mail class to select the auth Method

From: Date: Tue, 28 Jan 2003 17:23:50 +0000
Subject: Re: [imp] a PATCH to PEAR Mail class to select the auth Method
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-12794@lists.php.net to get a copy of this message
I was thinking making this functionality as you do, but I don't want to brake anything this is much better now! Quoting Jon Parise <jon@php.net>: > On Thu, Jan 23, 2003 at 10:59:21PM -0300, Damian Alejandro Fernandez Sosa > wrote: > > > I attach to this email a patch to smtp.php file of the Mail package > > to add a parameter (authMethod) to allow the selection of the auth > > method. > > > > Since Net_SMTP 1.1.0 version, the class allows to authenticate with > > DIGEST-MD5,CRAM-MD5, LOGIN and PLAIN methods by choosing the best auth > > method available first but you can overide this selection by passing a > > 3rd parameter to the auth() method. > > > > This patch do this by adding a authMethod param to the constructor's > > params array. > > I've committed a different version of this functionality. Instead of > adding a new parameter (which you named 'authMethod'), I decided to > reuse the 'auth' parameter: > > $params['auth'] = false; // No SMTP authentication > $params['auth'] = true; // Let Net_SMTP choose the best method > $params['auth'] = 'PLAIN'; // Force PLAIN authentication > > My changes to the PEAR Mail package only exist in CVS at the moment. > I'm not the primary maintainer of the package, so I can't say when the > next version will be released. However, if no one makes a release in > the relatively near future, I'll try and find the time to do so. > > -- > Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/) > ------------------------------------------------- Mail enviado desde el CNBA http://www.cnba.uba.ar/ -----

« previous php.pear.dev (#12794) next »