Page 1 of 1

Unexpected String error in server script trace, using Sendgrid Unsubscribe tag

Posted: Fri Feb 05, 2016 6:53 pm
by Louis Adekoya

The new sendgrid marketing API for sending a campaign requires the campaign to have an unsubscribe tag. When trying to create the campaign with this tag, I try to do so by adding the following to the html body :
code
<a href="[unsubscribe]">Unsubscribe from these emails</a>
/code
This is as described in https://sendgrid.com/docs/User_Guide/...

When I do this however, the script fails with an unexpected string error. Is there a way to escape or encode this string "[unsubscribe]" to make it work?