diff --git a/server/webhook/webhook.go b/server/webhook/webhook.go index bbb4abf9eb..de16fb2899 100644 --- a/server/webhook/webhook.go +++ b/server/webhook/webhook.go @@ -54,6 +54,10 @@ func Send(msg interface{}) { req.Header.Set("User-Agent", "Mailpit/"+config.Version) req.Header.Set("Content-Type", "application/json") + if config.Label != "" { + req.Header.Set("Mailpit-Label", config.Label) + } + client := &http.Client{} resp, err := client.Do(req) if err != nil {