From 14015da43404f8c98241c174c38294d2756d3349 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 11 Oct 2010 06:57:14 +0000 Subject: - Fix Net_SMTP from http://pear.php.net/bugs/bug.php?id=17942 --- program/lib/Net/SMTP.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'program') diff --git a/program/lib/Net/SMTP.php b/program/lib/Net/SMTP.php index 8b9d96749..31307f03b 100644 --- a/program/lib/Net/SMTP.php +++ b/program/lib/Net/SMTP.php @@ -974,6 +974,8 @@ class Net_SMTP } } } else { + if (!isset($size)) + $size = strlen($data); /* * Break up the data by sending one chunk (up to 512k) at a time. * This approach reduces our peak memory usage. -- cgit v1.2.3