I am using SendGrid For transactional email with dynamic templates. I have followed all the directions I can find about setting up unsubscribe groups but when I send an email with the API the link generated by SendGrid for the unsubscribe is pointing to a sub-domain of my domain that does not exist.
It feels like I've missed something in the setup that requires DNS configuration but I can't find any documentation to that effect.
I have done the following things that I found documentation for:
- Added a unsubscribe module to my template
- Created an unsubscribe group
- Added the unsubscribe group id to the request
My expectation:
I was expecting the link generated by SendGrid to point at an unsubscribe page hosted by SendGrid.
The result is a broken link to a sub-domain on my domain that does not exist:
I created my own issue!
In the end it turned out that the link being generated was broken because of a misconfiguration in link branding settings.
If anyone else comes across an issue where the generated link is broken and pointing to your own domain check your link branding settings.