[prev in list] [next in list] [prev in thread] [next in thread]
List: pear-doc
Subject: [PEAR-DOC] [PEAR-BUG] Bug #3291 [Opn]: Mail can not be sent
From: "tchoudinov at yahoo dot com" <pear-doc () lists ! php ! net>
Date: 2005-01-25 12:15:09
Message-ID: 20050125121509.39522.qmail () pb12 ! pair ! com
[Download RAW message or body]
Edit report at http://pear.php.net/bugs/bug.php?id=3291&edit=1
ID: 3291
User updated by: tchoudinov at yahoo dot com
Reported By: tchoudinov at yahoo dot com
Status: Open
Type: Bug
Package: Documentation
Operating System: Windows2000 server SP4
PHP Version: 4.3.9
New Comment:
Note $smtp->identifySender() function call in the version that works
fine. This call is absent in the last version of Mail_smtp::send()
function.
Previous Comments:
------------------------------------------------------------------------
[2005-01-25 07:12:13] tchoudinov at yahoo dot com
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 this bug report at http://pear.php.net/bugs/bug.php?id=3291&edit=1
--
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic