summaryrefslogtreecommitdiff
path: root/program/lib/Net/SMTP.php
diff options
context:
space:
mode:
Diffstat (limited to 'program/lib/Net/SMTP.php')
-rw-r--r--program/lib/Net/SMTP.php2
1 files changed, 2 insertions, 0 deletions
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.