summaryrefslogtreecommitdiff
path: root/program/include/rcube_smtp.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-05-26 07:10:52 +0000
committeralecpl <alec@alec.pl>2010-05-26 07:10:52 +0000
commit14a4ac556ee050a7f07194b151af15173f5853bc (patch)
treea5484c8902a4bbba29924276d4443e68822d241d /program/include/rcube_smtp.php
parent13e1552df175b39f6c4c6b55569a6d012604a896 (diff)
- fix error message on SMTP oversize error (#1486754)
Diffstat (limited to 'program/include/rcube_smtp.php')
-rw-r--r--program/include/rcube_smtp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_smtp.php b/program/include/rcube_smtp.php
index bdb87df31..447143500 100644
--- a/program/include/rcube_smtp.php
+++ b/program/include/rcube_smtp.php
@@ -242,7 +242,7 @@ class rcube_smtp
if (PEAR::isError($result = $this->conn->data($data, $text_headers)))
{
$err = $this->conn->getResponse();
- if (count($err)>1 && $err[0] != 354 && $err[0] != 250)
+ if (!in_array($err[0], array(354, 250, 221)))
$msg = sprintf('[%d] %s', $err[0], $err[1]);
else
$msg = $result->getMessage();