Howdy! I have my sendgrid dynamic templates setup and working ok, where I need to use a dynamic word or two (like user first name). However, I want to make a big chunk of the message body be dynamic, so I am using the “custom data” box to do this. I can see that Bubble sends the info & the text ok, but Sendgrid seems to ignore it and doesn’t sent anything. Any tips or help much appreciated!
Hey! I found the solution. Hours of trial & error and messing about and googling. Here it is for anyone that gets stuck in the future.
You can’t send multi line inputs to Sendgrid without manipulating two things:
You need to replace the line return (or break) with a space and then a br thing (I can’t type it here or it will just show a line return haha!) and then another space (the spaces are important). (via the find replace function, screenshot below, in the Find box I have just hit the return key - you can’t see it but it is there).
You need to use triple brackets for your variable input on the Sendgrid side so it knows to expect html (just add an other squirrelly bracket to your sendgrid variable on both sides).