FAQ
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

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedOct 21, '10 at 3:55p
activeOct 21, '10 at 3:55p
posts1
users1
websitepear.php.net

1 user in discussion

Jon: 1 post

People

Translate

site design / logo © 2022 Grokbase