| | |
| | | } |
| | | |
| | | // 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 = ''; |