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

Damian Fernandez Sosa (DESC) damlists at cnba.uba.ar
Tue Jan 28 14:23:50 PST 2003


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 at 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 at php.net) :: The PHP Project (http://www.php.net/)
> 




-------------------------------------------------
Mail enviado desde el CNBA
http://www.cnba.uba.ar/
-----



More information about the imp mailing list