Theme in HTML e-mail

Posted 1 year ago by DarkHarden

I am trying to send a HTML email with header and footer already defined in standart theme.

php artisan vendor:publish --tag=laravel-mail

I made export and with markdown it works nicely - there is header, footer and other things. But when I choose HTML, it looks bad, without default header, footer and other things.

public function build()
{
    return $this->markdown('emails.summary');
}

public function build()
{
    return $this->view('emails.summary');
}

This code shows only text "test" (without header and footer)

@component('vendor.mail.html.layout')
    @slot('title')
        Home Page
    @endslot

test

@endcomponent

Thank you for helping. I start with Laravel 3 days ago.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.