Create resource for email marketing
I'm almost finished with my SaaS project, and one of the things I'm including is the option to do email marketing. That is, to be able to create email campaigns and send them from a Filament resource. My question is if there is or do you recommend a way to do this, and where I can have an editor or preload a template with pre-made designs...
I'm thinking about asking an AI like Claude or ChatGPT to create some templates for me, but I don't know how I could do it so they're editable and can be previewed by the user. Maybe my question is a bit confusing, but finally, any ideas or recommendations would be great. I want this part to be extremely easy for the end user as well, since the first image gives the option to customize or create something like that on the same page. And if I can make this easy for my client, it will be so much better...
My idea is to make it as easy as possible for my client. I think I could set up some fixed fields using image, textarea, and text input types, and just change some predefined designs that I could add in the future. I could start with 3 or 4 but offer more designs to my clients later. This way I make my client's life much easier with email marketing.


5 Replies
No built-in options for that for now, but you might just use some of the community plugins like:
https://filamentphp.com/plugins/infinityxtech-unlayer
https://filamentphp.com/plugins/visual-builder-email-templates
https://filamentphp.com/plugins/solution-forest-filaletter (Paid)
or a lot of resource form customization to get it just a any other Laravel app
or even a combination of the two options
Filament
Unlayer by InfinityXTech - Filament
Wrapper for unlayer editor with unlayer templates custom select field.
Filament
Email Templates by Visual Builder - Filament
This package offers comprehensive email template management providing authorized editing, token replacement, multilingual support, mail class creation, and customizable theme options.
Filament
SolutionForest Filaletter by Solution Forest - Filament
This is an email marketing plugin built specifically for Filament Admin Panel. It aims to bring the distribution of content by email into the admin panel, where we believe it should be, along with the same ethos of flexibility and user-friendliness that FilamentPHP provides. This package is based on the open-source project SendPortal Core.
you can dive to their source codes to get an idea at least
Thanks so much for the info and the plugin, but I'm trying to create my own code for things like this... I actually have this, it looks like an email template generator you shared with me, but I'm having a bit of a struggle with displaying the email preview and getting it to load with the pre-filled text...
I'll keep trying this part tomorrow... thanks you so much again @Mohamed Ayaou


i have this at the moment...
i continue working in this!

You're welcom, the customization is the only option for now. don't forgot to source dive the plugins' reops for more ideas