From 68519b2cc4c4ce468fbcfcb9df848aea2a078088 Mon Sep 17 00:00:00 2001 From: RakanHowls <33558775+RakanHowls@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:49:14 +0200 Subject: [PATCH] Set Precedence: Bulk header --- internal/service/mailsrv/mailsrv.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/service/mailsrv/mailsrv.go b/internal/service/mailsrv/mailsrv.go index e90efb7..d0e7297 100644 --- a/internal/service/mailsrv/mailsrv.go +++ b/internal/service/mailsrv/mailsrv.go @@ -24,6 +24,8 @@ func (s *MailServiceImplData) SendMail(ctx context.Context, dto mail.MailSendDto if config.MessageIdDomain() != "" { m.SetHeader("Message-ID", generateMessageId(ctx, config.MessageIdDomain())) } + // Avoid getting auto-response emails and triggering spam filters + m.SetHeader("Precedence", "Bulk") // Set recipients & Subject if config.MailDevMode() {