fixthestatusquo / proca-server

Proca server, SDKs and services
https://proca.app
5 stars 3 forks source link

webhook from mailjet #256

Open tttp opened 5 months ago

tttp commented 5 months ago

it seems that the format has changed or ... something is not properly handled?

https://dev.mailjet.com/email/guides/webhooks/#event-types

tttp commented 5 months ago

if the event type is bounced or Spam (or blocked?), change the status of the action to rejected/cancelled/invalid

destag commented 5 months ago

@tttp I think format is the same as expected by Proca.Service.Mailjet

https://github.com/fixthestatusquo/proca-server/blob/1258a70219615f952150aa0a52b107f587103d67/proca/lib/proca/service/mailjet.ex#L209

I will check how it differentiates bounce event from other events (e.g. sent event)

tttp commented 5 months ago

I changed the config on mailjet to not send the delivered/sent event, to focus on most important events