I had created a templated email on sendgrid, which was functioning correctly. Suddenly, the email received is a “plain text” email instead of the usual template. I tried to look for a cause, but havent been able to solve it.
But when i hover my cursor above “body01” in code… it says “dataset9” is not a valid selector.
To my surprise, this dataset9 does not exist on the page where this code belongs. I have only 1 such sendgrid code on 1 page on my site and nowhere else anything. But it is saying dataset9 is not a valid selector.
For a little background. The email is triggered when someone inputs information into a custom form. On button click, a email is triggered via sendgrid. Now all of this has nothing to do with database since all information is passed directly to database via code.
Also, check how you are coding the page code too as it seems that you using ‘body01’ is causing issues with it as it should just be written as just body otherwise the code will think that it is something else as like your current issue.
The same with your dynamic template data, make sure that it is the correct template id and the handler substitutions in the request JSON are correct to.
Hey GOS, thanks a lot for all the resources. However my sendgrid email was functioning all right. I was receiving the email in the template i had designed. But suddenly it started sending “ONLY TEXT”. I checked all setting and everything…
I saw just one such post , where a person was complaining same.