[imp] a PATCH to PEAR Mail class to select the auth Method
Damian Alejandro Fernandez Sosa
damlists at cnba.uba.ar
Thu Jan 23 22:59:21 PST 2003
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.
So now with this patch you can create a smtp object and selecting the
CRAM-MD5 auth method doing:
require_once 'Mail.php';
$params['host']="localhost";
$params['port']=25;
$params['auth']=true;
$params['username']="foo";
$params['password']="bar";
$params['authMethod']="CRAM-MD5";
$mailer = &Mail::factory("smtp", $params);
If you agree with this patch please commit to allow to use this feature.
Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smtp.php.authMethod
Type: text/x-patch
Size: 2327 bytes
Desc: not available
Url : http://lists.horde.org/archives/imp/attachments/20030123/c34ec3f4/smtp.php.bin
More information about the imp
mailing list