Bug #17981 [Opn->Dup]: Blank E-Mail

From: Date: Thu, 21 Oct 2010 16:56:01 +0000
Subject: Bug #17981 [Opn->Dup]: Blank E-Mail
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-4954@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=17981&edit=1 ID: 17981 Updated by: jon@php.net Reported By: pear at ashbays dot co dot uk Summary: Blank E-Mail -Status: Open +Status: Duplicate Type: Bug Package: Net_SMTP Operating System: Windows XP Package Version: 1.4.3 PHP Version: 5.2.6 -Assigned To: +Assigned To: jon Roadmap Versions: New Comment: -Status: Open +Status: Duplicate -Assigned To: +Assigned To: jon Duplicate of bug #17942. Previous Comments: ------------------------------------------------------------------------ [2010-10-21 15:00:45] #d6b35daa1bae0b4e47b Description: ------------ I am getting e-mails that are blank, no subject, body, or header values. I am connecting to Yahoo SMTP server, and it appears that the ESMTP 'SIZE' is not returned by the server (I think), this appears to be correct action according to your comments and RFC 1870. In file: SMTP.php Function: data (): line 915 A variable called $size is calculated if and only if _esmtp['SIZE'] exists and is greater than 0: line 927 and 931. However further down, from line 981, $size is used to chunk up and send the $data, but in my case _esmtp['SIZE'] did not exist and so $size was not set and so no $data is sent at all. As a test I moved: if (isset($this->_esmtp['SIZE']) && ($this->_esmtp['SIZE'] > 0)) { at line 927 down to line 942, in order that the $size is calculated regardless, and my e-mails now works fine. regards Mark Baker ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17981&edit=1

« previous php.pear.bugs (#4954) next »