简体   繁体   中英

Prevent SendGrid from replacing <a> tags in Dynamic Templates

I'm using the @sendgrid/mail library to send emails from our app, using a dynamic template. The template is created entirely with custom HTML.

When emails are delivered, any custom code in <a> tags is ignored. More specifically, SendGrid adds a "data-saferedirecturl" attribute and strips out any other attributes I add.

I've already tried disabling SendGrid click tracking globally, as well as disabling it individually, but neither seems to make any difference.

Anyone know if it's possible to change this behavior, either via the SendGrid dashboard or API settings?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM