Bug #3291 [NEW]: Mail can not be sent

From: Date: Tue, 25 Jan 2005 12:12:14 +0000
Subject: Bug #3291 [NEW]: Mail can not be sent
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5472@lists.php.net to get a copy of this message
From: tchoudinov at yahoo dot com Operating system: Windows2000 server SP4 PHP version: 4.3.9 Package: Documentation Bug Type: Bug Bug description: Mail can not be sent Description: ------------ When I try to send mail using Mail::send with smtp backend it does not work. Method Send() reports "unable to connect to smtp server", but all the SMTP server credentials are correct. Class Mail_smtp (extends class Mail) File smtp.php * @package Mail * @version $Revision: 1.12 $ The code contains this error is somewhere here in function Mail_smtp::send(...): ---------------------------------------------------- if ($this->auth) { $method = is_string($this->auth) ? $this->auth : ''; if (PEAR::isError($smtp->auth($this->username, $this->password,$method))) { return new PEAR_Error('unable to authenticate to smtp server'); } } Reproduce code: --------------- The same part of code in function Mail_smtp::send(...) in the previos version * @package Mail * @version $Revision: 1.3 $ was just: ---------------- if ($this->auth) { if (PEAR::isError($smtp->auth($this->username, $this->password))) { return new PEAR_Error('unable to authenticate to smtp server'); } if (PEAR::isError($smtp->identifySender())) { return new PEAR_Error('unable to identify smtp server'); } } ---------------- This code works fine. Mail is sent. -- Edit bug report at http://pear.php.net/bugs/bug.php?id=3291&edit=1 --

« previous php.pear.doc (#5472) next »