Closed novubot closed 1 year ago
I would like to work on this!
Hi @scopsy, I would also like to work on this issue, if possible.
Hi @abhilipsasahoo03 , please notice that this issue has already been assigned. Please avoid working on assigned issues. @maxslimb, as you were assigned a few days after you asked to be, I just want to make sure you are still willing to work on this.
Hi @abhilipsasahoo03 , please notice that this issue has already been assigned. Please avoid working on assigned issues. @maxslimb, as you were assigned a few days after you asked to be, I just want to make sure you are still willing to work on this.
Hi, I'm extremely sorry, somehow I missed out on the assignment! I'll take care of this next time onwards.
@ainouzgali Yes, I am working on this issue, will put a pr soon
Why
To be able to give better answers why a message was not sent to a subscriber we need to get some info from the provider with a webhook. (deliverability status, rejection status etc).
How
To do this we need to implement these functions inside of the provider:
The
getMessageId
needs to return all identifiers that should be the same value as id that is returned fromsendMessage
with help of this we can connect a webhook to the specific message.parseEventBody
will get the full webhook body and the current identifier that the body should be parsed for. If there is nothing to parse the method should returnundefined
.All returns that is not
undefined
should be an object that is in this format:Note that statuses for email needs to be value from
EmailEventStatusEnum
and sms should have a status fromSmsEventStatusEnum.
Example of how to do it can be found in
SendgridEmailProvider
.