Skip to main content

Emails & Notifications

Our least favorite part of building applications is trying to get the emails and notifications styled to match the application. We've made it easy to send branded emails and notifications from your FilamentFlow application so you don't have to sort through the laravel files.

Styling Emails and Notifications

FilamentFlow has the published notification and email message.blade.php files that you can customize to match your application. You can find these files in the resources/views/vendor/mail directories; preconfigured with the FilamentFlow branding.

Files to Customize

The following files have been published for you to customize, and include the branding from your application by default:

  • resources/views/vendor/mail/html/layout.blade.php
  • resources/views/vendor/mail/html/themes/default.css
  • resources/views/vendor/mail/html/message.blade.php
  • resources/views/vendor/mail/text/message.blade.php

Customizing more than the layout

Unfortunately to customize more, you will need to publish the laravel notifications and mail resources using the following commands:

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

Sender Customization

You should also customize the config/mail.php file to set the default email address and name for your application. This will be used as the sender for all emails sent from your application, and we've set it to use the APP_NAME environment variable by default, but be sure to adjust your MAIL_FROM_ADDRESS.

.env
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"