File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/Illuminate/Mail/Transport Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ protected function doSend(SentMessage $message): void
73
73
foreach ($ email ->getAttachments () as $ attachment ) {
74
74
$ attachmentHeaders = $ attachment ->getPreparedHeaders ();
75
75
$ contentType = $ attachmentHeaders ->get ('Content-Type ' )->getBody ();
76
-
76
+ $ disposition = $ attachmentHeaders -> getHeaderBody ( ' Content-Disposition ' );
77
77
$ filename = $ attachmentHeaders ->getHeaderParameter ('Content-Disposition ' , 'filename ' );
78
78
79
79
if ($ contentType == 'text/calendar ' ) {
@@ -88,6 +88,10 @@ protected function doSend(SentMessage $message): void
88
88
'filename ' => $ filename ,
89
89
];
90
90
91
+ if ($ disposition === 'inline ' ) {
92
+ $ item ['inline_content_id ' ] = $ attachment ->hasContentId () ? $ attachment ->getContentId () : $ filename ;
93
+ }
94
+
91
95
$ attachments [] = $ item ;
92
96
}
93
97
}
You can’t perform that action at this time.
0 commit comments