wip mail template using markdown

This commit is contained in:
guillaume91 2024-06-13 09:06:36 +02:00
parent 27de44354a
commit 44d5c17e8a
2 changed files with 23 additions and 1 deletions

View file

@ -47,7 +47,13 @@ public function envelope(): Envelope
public function content(): Content
{
return new Content(
htmlString: $this->mailing->message,
markdown: 'emails.scheduled-report',
with: [
'mailingContent' => $this->mailing->message,
'logoPath'=> Storage::disk('app')->path('images/smartcane.png'),
'subject' => $this->mailing->subject,
],
//htmlString: $this->mailing->message
);
}

View file

@ -0,0 +1,16 @@
<x-mail::message>
<img src="{{$message->embed($logoPath)}}" alt="Smartcane Logo">
# ![]({{$message->embed($logoPath)}}) Smartcane - +31 6 2037 6734
## Report update for {{$subject}}
**Body:**
{{$mailingContent}}
Thanks,<br>
{{config('app.name')}}
</x-mail::message>