| | |
| | | |
| | | /* |
| | | +-----------------------------------------------------------------------+ |
| | | | program/include/rcube_smtp.php | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2012, The Roundcube Dev Team | |
| | | | | |
| | |
| | | | | |
| | | | PURPOSE: | |
| | | | Provide SMTP functionality using socket connections | |
| | | | | |
| | | +-----------------------------------------------------------------------+ |
| | | | Author: Thomas Bruederli <roundcube@gmail.com> | |
| | | +-----------------------------------------------------------------------+ |
| | |
| | | } |
| | | |
| | | // try to connect to server and exit on failure |
| | | $result = $this->conn->connect($smtp_timeout); |
| | | $result = $this->conn->connect($CONFIG['smtp_timeout']); |
| | | |
| | | if (PEAR::isError($result)) { |
| | | $this->response[] = "Connection failed: ".$result->getMessage(); |
| | |
| | | } |
| | | |
| | | // RFC2298.3: remove envelope sender address |
| | | if (preg_match('/Content-Type: multipart\/report/', $text_headers) |
| | | if (empty($opts['mdn_use_from']) |
| | | && preg_match('/Content-Type: multipart\/report/', $text_headers) |
| | | && preg_match('/report-type=disposition-notification/', $text_headers) |
| | | ) { |
| | | $from = ''; |