N
Novu6mo ago
Nao Ohira

Overrides to for email channel

I'm using self hosted Novu 0.22 with custom SMTP provider I read that I can override some attributes from this page: https://docs.novu.co/channels-and-providers/email/overview#sending-email-overrides I want to send a different e-mail than the subscriber one (Sending a link for validating email address changes before changing subscriber actual email)
{
"name": "user-account-username-modification-validation",
"to": "652f866f9203e3869e6db7c2",
"overrides": {
"email": {
"to" : "new@email.com"
}
},
"payload": { "deeplink" : "http://...." },
"tenant": {
"identifier": "r43h8301_Vly38wsrHG"
}
}
{
"name": "user-account-username-modification-validation",
"to": "652f866f9203e3869e6db7c2",
"overrides": {
"email": {
"to" : "new@email.com"
}
},
"payload": { "deeplink" : "http://...." },
"tenant": {
"identifier": "r43h8301_Vly38wsrHG"
}
}
I assume that it should send it to new@email.com and not the one that is setted for subscriber (old@email.com). I still get to the old one. Am I missing something? I added a screen capture of the step timeline and nothing seems to say that there is overrides
Novu
Overview - Novu
Learn the process of configuring email providers with Novu
2 Replies
Nao Ohira
Nao Ohira6mo ago
It seems weirder than I though: Having a string into to attribute, only the subscriber receive, having an array, it send to both subscriber and recipients that are in the array. I guess it's not overriding, but adding
Pawan Jain
Pawan Jain6mo ago
@Nao Ohira I can reproduce this. I will get back to you once I get more details why we have this behaviour