mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Add ability to disable content-disposition for email attachments.
This solves issues with outlook and text/calendar attachments. Refs #3042
This commit is contained in:
parent
468302b526
commit
9deb966657
1 changed files with 3 additions and 1 deletions
|
@ -1355,7 +1355,9 @@ class CakeEmail {
|
||||||
$msg[] = '--' . $boundary;
|
$msg[] = '--' . $boundary;
|
||||||
$msg[] = 'Content-Type: ' . $fileInfo['mimetype'];
|
$msg[] = 'Content-Type: ' . $fileInfo['mimetype'];
|
||||||
$msg[] = 'Content-Transfer-Encoding: base64';
|
$msg[] = 'Content-Transfer-Encoding: base64';
|
||||||
$msg[] = 'Content-Disposition: attachment; filename="' . $filename . '"';
|
if (!isset($fileInfo['contentDisposition']) || $fileInfo['contentDisposition']) {
|
||||||
|
$msg[] = 'Content-Disposition: attachment; filename="' . $filename . '"';
|
||||||
|
}
|
||||||
$msg[] = '';
|
$msg[] = '';
|
||||||
$msg[] = $data;
|
$msg[] = $data;
|
||||||
$msg[] = '';
|
$msg[] = '';
|
||||||
|
|
Loading…
Reference in a new issue