Mailables

Customize your emails

You can adjust our sent mails just as you like them.

Adjust your template

Unfortunately there is an issue if using markdown at the moment. You can easily adjust it though. I will explain how.

See the issue: https://github.com/statamic/cms/issues/2747

1. Publish your vendor files

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

Docs for more information: https://laravel.com/docs/master/notifications#customizing-the-components

2. Create your own theme

Duplicate the default.css file and rename yoru copy to for example butik dd

You'll find the css file in the themes folder:

resources/views/vendor/mail/html/themes

3. Change your theme

Update the theme option of the mail configuration file to match the name of your new theme inside your config\mail.php

In our example, you need to rename the theme to butik

That's it!

Templates

After publishing your views, you can adjust our mail templates.

The following values are available inside the views:

variable

includes

$order

All order information

$customer

Customer information

$items

The purchased items

$order_id

The order ID

$paid_at

When the purchase has been paid

$total_amount

The total amount

Customize markdown layout

You can customize the markdown as described in the Laravel documentation.