Skip to content

Commit

Permalink
set content type header (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentmichuki committed Nov 11, 2021
1 parent fcb1501 commit 167686f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/engagement/infrastructure/services/mail/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 167686f

Please sign in to comment.