#SendGrid overrides not working

1 messages · Page 1 of 1 (latest)

fallen mist
#

Hello,

I'm trying to remove the unsubscribe link present in every email sent by SendGrid.
SendGrid allows this by setting a flag "tracking_settings.subscription_tracking.enabled=false" - as seen here: https://docs.sendgrid.com/api-reference/mail-send/mail-send
This works when using directly the SendGrid SDK but not through Novu.
My code (NodeJs):

await this.novu.trigger(triggerId, {
to: subscribers,
payload: payload,
overrides: {
sendgrid: {
tracking_settings: {
subscription_tracking: {
enable: false
}
}
}
}
});

The email is sent but the overrides don't work, meaning the unsubscription link is still present

kindred tiger
#

Hi @fallen mist
We have not added provider level overrides

fallen mist
#

oh I see, is it on the roadmap?

kindred tiger
fallen mist
#

FYI for anyone having the same issue, the workaround I've applied:

SendGrid allows to place the unsubscribe link anywhere in your email if you provide a special tag that you can configure here: https://app.sendgrid.com/settings/tracking
Let's say that your tag is named "UNSUB_LINK", then you can add this in your Novu template:
<p style="display: none">Unsubscribe <a href=”UNSUB_LINK”> here</a></p>

This makes the unsubscribe button present, but invisible which solves it for our usecase

kindred tiger
#

Thanks for sharing the workaround for this issue @fallen mist