From 7c2253c896fe3071ccc7b9bfa66af63ba2ee5141 Mon Sep 17 00:00:00 2001 From: Jonathan Martz Date: Sun, 12 Jan 2025 19:22:11 +0100 Subject: [PATCH] fix mailer go --- mailer.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mailer.go b/mailer.go index 5cd6293..ca36ca3 100644 --- a/mailer.go +++ b/mailer.go @@ -6,7 +6,6 @@ import ( "flag" "fmt" "log" - "math/rand" "net/smtp" "os/exec" "time" @@ -83,8 +82,7 @@ func main() { } // Prepare the email body - messageID := fmt.Sprintf("<%d.%d@%s>", now.UnixNano(), rand.Int(), smtpHost) - emailBody := fmt.Sprintf("Subject: %s\r\n\r\n Message-ID: %s \r\n\r\n %s", subject, messageID, string(countsJSON)) + emailBody := fmt.Sprintf("Subject: %s\r\n\r\n%s", subject, string(countsJSON)) // Connect to the SMTP server auth := smtp.PlainAuth("", *smtpUser, *smtpPass, smtpHost)