Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit aadb2de

Browse files
committed
Merge branch 'hotfix/119'
Close #119
2 parents 0b7466d + 20c01b8 commit aadb2de

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doc/book/message/attachments.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,8 @@ $content = new MimeMessage();
116116
$content->setParts([$text, $html]);
117117

118118
$contentPart = new MimePart($content->generateMessage());
119-
$contentPart->type = sprintf(
120-
"multipart/alternative\n boundary=\"%s\",
121-
$content->getMime()->boundary()
122-
);
119+
$contentPart->boundary = $content->getMime()->boundary();
120+
$contentPart->type = 'multipart/alternative';
123121

124122
$image = new MimePart(fopen($pathToImage, 'r'));
125123
$image->type = 'image/jpeg';

0 commit comments

Comments
 (0)