| | |
| | | | Author: Thomas Bruederli <roundcube@gmail.com> | |
| | | +-----------------------------------------------------------------------+ |
| | | |
| | | $Id: sendmail.inc 506 2007-03-14 00:39:51Z thomasb $ |
| | | $Id$ |
| | | |
| | | */ |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * Creates a new mimePart object, using multipart/mixed as |
| | | * the initial content-type and returns it during the |
| | | * build process. |
| | | * |
| | | * @return object The multipart/mixed mimePart object |
| | | * @access private |
| | | */ |
| | | function &_addMixedPart() |
| | | { |
| | | $params['content_type'] = $this->_headers['Content-Type'] ? $this->_headers['Content-Type'] : 'multipart/mixed'; |
| | | $ret = new Mail_mimePart('', $params); |
| | | return $ret; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Encodes a header as per RFC2047 |
| | | * |
| | | * @param array $input The header data to encode |
| | |
| | | } |
| | | } |
| | | |
| | | $input[$hdr_name] = $hdr_value; |
| | | $input[$hdr_name] = wordwrap($hdr_value, 990, "\n", true); // hard limit header length |
| | | } |
| | | |
| | | return $input; |