| | |
| | | <?php |
| | | |
| | | /* |
| | | /** |
| | | +-----------------------------------------------------------------------+ |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2012, The Roundcube Dev Team | |
| | |
| | | */ |
| | | class rcube_smtp |
| | | { |
| | | private $conn = null; |
| | | private $conn; |
| | | private $response; |
| | | private $error; |
| | | private $anonymize_log = 0; |
| | |
| | | else if (is_string($headers)) { |
| | | $text_headers = $headers; |
| | | } |
| | | else { |
| | | $this->reset(); |
| | | $this->response[] = "Invalid message headers"; |
| | | return false; |
| | | } |
| | | |
| | | // exit if no from address is given |
| | | if (!isset($from)) { |
| | |
| | | |
| | | if (is_resource($body)) { |
| | | // file handle |
| | | $data = $body; |
| | | $text_headers = preg_replace('/[\r\n]+$/', '', $text_headers); |
| | | $data = $body; |
| | | |
| | | if ($text_headers) { |
| | | $text_headers = preg_replace('/[\r\n]+$/', '', $text_headers); |
| | | } |
| | | } |
| | | else { |
| | | // Concatenate headers and body so it can be passed by reference to SMTP_CONN->data |
| | |
| | | $this->conn = null; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * This is our own debug handler for the SMTP connection |