summaryrefslogtreecommitdiff
path: root/program/include/rcube_smtp.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-04-23 14:25:28 +0000
committerthomascube <thomas@roundcube.net>2010-04-23 14:25:28 +0000
commitd062dbe18cbb2609cd2cc67ae843cf33bb4971cf (patch)
treea6d5599167927c659dab831b65b853a815f4d280 /program/include/rcube_smtp.php
parentd824acaf11b9cc0d196488ef3c9bc03bee41f948 (diff)
Add class docuumentation blocks and make phpdoc work again
Diffstat (limited to 'program/include/rcube_smtp.php')
-rw-r--r--program/include/rcube_smtp.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/program/include/rcube_smtp.php b/program/include/rcube_smtp.php
index 1dfe222d5..bdb87df31 100644
--- a/program/include/rcube_smtp.php
+++ b/program/include/rcube_smtp.php
@@ -5,7 +5,7 @@
| program/include/rcube_smtp.php |
| |
| This file is part of the RoundCube Webmail client |
- | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland |
+ | Copyright (C) 2005-2010, RoundCube Dev. - Switzerland |
| Licensed under the GNU GPL |
| |
| PURPOSE: |
@@ -22,7 +22,15 @@
// define headers delimiter
define('SMTP_MIME_CRLF', "\r\n");
-class rcube_smtp {
+/**
+ * Class to provide SMTP functionality using PEAR Net_SMTP
+ *
+ * @package Mail
+ * @author Thomas Bruederli <roundcube@gmail.com>
+ * @author Aleksander Machniak <alec@alec.pl>
+ */
+class rcube_smtp
+{
private $conn = null;
private $response;
@@ -124,7 +132,7 @@ class rcube_smtp {
$this->error = array('label' => 'smtpautherror', 'vars' => array('code' => $this->conn->_code));
$this->response[] .= 'Authentication failure: ' . $result->getMessage() . ' (Code: ' . $result->getCode() . ')';
$this->reset();
- $this->disconnect();
+ $this->disconnect();
return false;
}
}