cvs: pear /Mail/Mail smtp.php
| From: | Jon Parise | Date: | Wed, 15 Jan 2003 04:02:29 +0000 |
| Subject: | cvs: pear /Mail/Mail smtp.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8269@lists.php.net to get a copy of this message | ||
jon Tue Jan 14 23:02:29 2003 EDT
Modified files:
/pear/Mail/Mail smtp.php
Log:
Add a note about identifySender() effectively being a NOOP with the
release of Net_SMTP 1.1.0.
Index: pear/Mail/Mail/smtp.php
diff -u pear/Mail/Mail/smtp.php:1.4 pear/Mail/Mail/smtp.php:1.5
--- pear/Mail/Mail/smtp.php:1.4 Sat Jan 4 06:55:32 2003
+++ pear/Mail/Mail/smtp.php Tue Jan 14 23:02:28 2003
@@ -23,7 +23,7 @@
* Net_SMTP:: class.
* @access public
* @package Mail
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
class Mail_smtp extends Mail {
@@ -117,6 +117,12 @@
if ($this->auth) {
if (PEAR::isError($smtp->auth($this->username, $this->password))) { return new
PEAR_Error('unable to authenticate to smtp server'); }
+
+ /*
+ * XXX This call to identifySender() is not needed by Net_SMTP
+ * 1.1.0 or later. Once that version of Net_SMTP reaches a
+ * critical installed base, this line should be removed.
+ */
if (PEAR::isError($smtp->identifySender())) { return new PEAR_Error('unable to
identify smtp server'); }
}