Skip to content

Commit 819f7fc

Browse files
kevinvennittitexnixe
authored andcommitted
Fix asset methods and remove comment
1 parent 4917dd0 commit 819f7fc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

content/docs/1_guide/16_emails/guide.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,8 @@ $kirby->email([
277277
// …
278278
'template' => 'email',
279279
'beforeSend' => function ($mailer) {
280-
// $image should return file path
281-
$image = asset('assets/images/logo.png')->root();
282-
$mailer->AddEmbeddedImage($image, 'image', $image->filename(), 'base64', $image->mime());
280+
$image = asset('assets/images/logo.png');
281+
$mailer->AddEmbeddedImage($image->root(), 'image', $image->filename(), 'base64', $image->mime());
283282

284283
return $mailer;
285284
}

0 commit comments

Comments
 (0)