diff --git a/laravel_app/app/Mail/ReportMailer.php b/laravel_app/app/Mail/ReportMailer.php index 4465ec8..1c975d1 100644 --- a/laravel_app/app/Mail/ReportMailer.php +++ b/laravel_app/app/Mail/ReportMailer.php @@ -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 ); } diff --git a/laravel_app/resources/views/emails/scheduled-report.blade.php b/laravel_app/resources/views/emails/scheduled-report.blade.php new file mode 100644 index 0000000..120f590 --- /dev/null +++ b/laravel_app/resources/views/emails/scheduled-report.blade.php @@ -0,0 +1,16 @@ + + Smartcane Logo + + # ![]({{$message->embed($logoPath)}}) Smartcane - +31 6 2037 6734 + + ## Report update for {{$subject}} + + **Body:** + + {{$mailingContent}} + + Thanks,
+ + {{config('app.name')}} + +