I try to send a single Email via SendGrid API v3 with curl call.
I created a template and reference on it. In this template i placed some vars to be replace. Mails will be send successfully, but without it's string replacement.
There are the datastructure I sent. What do I wrong?
{ "template_id": "d-1074861686174fbfac02e25381e02e32", "personalizations": [ { "to": [{"email": "[email protected]"}], "sub": { "%USERNAME%": ["Hans"], "%DATE%": ["25.12.1988"], "%DAYS%": ["58"], }, }, ], "from": { "email": "[email protected]", "name": "Kundenservice" }, "reply_to": { "email": "[email protected]", "name": "Kundenservice" } }