I am trying to make my transactional emails pretty (emails created using ‘send email’ action in workflows)
I have created a dynamic template in SendGrid and added this number in the ‘Template ID’ field in Bubble’s Email Settings.
However, while Bubble is succesfully using the template in SendGrid, there is no data in it - no subject and no body. How do I add this to the template in SendGrid, I presume it is some kind of shortcode?
Then in your Sendgrid template, make sure to have {{subject}} in your Subject line, so that the subject data comes from your sendgrid custom email action.
As a quick note, @ferhatgulbahar (great walkthrough!) is using the SendGrid plugin as opposed to Bubble’s built-in email actions. You’ll have to decide which option works best for your use case!
Thanks a lot @ferhatgulbahar. Yes it definitely helps a lot. I will definetly upgrade at some point to using Sendgrid templates, but before I do I have a question…
@copilot, from your remarks, do you also mean than we can use json with the Bubble built-in email actions or are these the limitations that exist with using this option?
@ferhatgulbahar How can one set up a SendGrid template to be used in Bubble’s automatic transactional emails such as password resets and such?
I’ve created a new template in SendGrid, entered its ID in Bubble in Settings > Domain / email > Email settings > Template ID, and verified the API key.
However, no matter where I add <%body%> in the template (as per Bubble’s documentation), dynamic content of the email never displays when an email is sent, only static stuff like the logo image I put in there.
I spent the entire day yesterday going through this and pulling my non-existent hair out. In the end, I was causing my own troubles as I was using a bunch of out of date forum posts and tutorials. At the end, I followed this and it worked first time:
The way to know that this is the current version is reference to these keys or substitution tags. The outdated posts refer to all manner of obsolete stuff that is such a rabbit hole. That should all be sunset.
This is true, if you want anything with the new version of email templates you’ll need to use the @copilot Sendgrid plugin or setup a connection on the API connector.
hmmm, I must admit Sendgrid is annoying. Or maybe it’s Bubblle which is the issue? I always get this error, even when my Subject is plain text. My tests work, meaning Sendgrid is sending emails and they are arriving, but when I set up a button in Bubble to send email I get the same error.
@darren.james7518 I ended up ditching Legacy Templates and exclusively using Dynamic Templates in all new projects, powered by @copilot’s excellent SendGrid plugin. I can’t recommend it enough.