| | |
| | | | 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: | |
| | |
| | | // 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; |
| | |
| | | $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; |
| | | } |
| | | } |