From 9eeb9bb6600a039406b3341c21d8debfb2f61e72 Mon Sep 17 00:00:00 2001 From: Steve Nelson <80222096+stevesec@users.noreply.github.com> Date: Wed, 22 Nov 2023 15:47:38 -0500 Subject: [PATCH] Removed X-Mailer Header from email_request.go --- models/email_request.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/models/email_request.go b/models/email_request.go index 35d2e6b99..e33a7171a 100644 --- a/models/email_request.go +++ b/models/email_request.go @@ -117,10 +117,10 @@ func (s *EmailRequest) Generate(msg *gomail.Message) error { s.URL = url // Add the transparency headers - msg.SetHeader("X-Mailer", config.ServerName) - if conf.ContactAddress != "" { - msg.SetHeader("X-Gophish-Contact", conf.ContactAddress) - } + // msg.SetHeader("X-Mailer", config.ServerName) + // if conf.ContactAddress != "" { + // msg.SetHeader("X-Gophish-Contact", conf.ContactAddress) + // } // Parse the customHeader templates for _, header := range s.SMTP.Headers {