Skip to content

Commit

Permalink
Fixed wrong boundary marker for inline-files, inline-files should sta…
Browse files Browse the repository at this point in the history
…rt new rel-boundaries, not (outer-)mixed-boundaries.

Amavis spits out this error:
X-Amavis-Alert: BAD HEADER MIME error: error: unexpected end of parts before epilogue
  • Loading branch information
hmic authored and markstory committed Jan 12, 2012
1 parent c168677 commit 29cfdb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/Email/CakeEmail.php
Expand Up @@ -1288,7 +1288,7 @@ protected function _attachInlineFiles() {
}
$data = $this->_readFile($fileInfo['file']);

$msg[] = '--' . $this->_boundary;
$msg[] = '--rel-' . $this->_boundary;
$msg[] = 'Content-Type: ' . $fileInfo['mimetype'];
$msg[] = 'Content-Transfer-Encoding: base64';
$msg[] = 'Content-ID: <' . $fileInfo['contentId'] . '>';
Expand Down

0 comments on commit 29cfdb4

Please sign in to comment.