mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixed wrong boundary marker for inline-files, inline-files should start 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
This commit is contained in:
parent
c168677257
commit
29cfdb4b41
1 changed files with 1 additions and 1 deletions
|
@ -1288,7 +1288,7 @@ class CakeEmail {
|
|||
}
|
||||
$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'] . '>';
|
||||
|
|
Loading…
Add table
Reference in a new issue