Replies: 2 comments 12 replies
-
You can also check https://mjml.io I am using this personally + AWS SES. Maybe it would make sense here to have a common API as kind of a plugin and write different API wrappers. |
Beta Was this translation helpful? Give feedback.
-
Good question @mbrookson! I highly recommend using https://postmarkapp.com instead of doing templating inside your app. I've found it to be a lot nicer for other business folks to be able to update email templates without requiring a developer. Also, you want send emails as a background process so they don't block the user's network request. If deploying Blitz serverless, you need to set up a queue and send email events to the queue. Or instead of all this, just send an API request to Postmark/Sendgrid :) That said, I could totally see having a blitz email plugin for folks wanting to render their own template. |
Beta Was this translation helpful? Give feedback.
-
Thought of something that could be a cool and useful feature/recipe... Emails. ✉️
This is both an idea and topic for discussion. How are other people handling sending of emails in their Blitz apps? 🙂 💡
I've got a couple of options that I'm considering and not sure on the best approach.
For option 1, generally you create email templates within their system and use their APIs and/or SDKs to send them etc.
For option 2 I've seen a couple of projects that could help with this.
react-dom/server
to render email templates from React components.Emails are definitely something that are often required in a full stack application. I'm going to keep playing around within my own app and see what I come up with.
Beta Was this translation helpful? Give feedback.
All reactions