SendGrid overrides not working
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
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