From 167686fbdfe9213679b81181c2b3045746046084 Mon Sep 17 00:00:00 2001 From: VincentJoseph Date: Thu, 11 Nov 2021 16:44:48 +0300 Subject: [PATCH] set content type header (#62) --- pkg/engagement/infrastructure/services/mail/service.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/engagement/infrastructure/services/mail/service.go b/pkg/engagement/infrastructure/services/mail/service.go index 54fea615..901a0c83 100644 --- a/pkg/engagement/infrastructure/services/mail/service.go +++ b/pkg/engagement/infrastructure/services/mail/service.go @@ -240,6 +240,8 @@ func (s ServiceMailImpl) SendMailgun( message.SetHtml(text) } + message.AddHeader("Content-Type", "text/html; charset=\"utf-8\";") + ctx, cancel := context.WithTimeout(ctx, time.Second*MailGunTimeoutSeconds) defer cancel()