From db9a201f6cdad3c0388ae1cf743bc0d086d19e70 Mon Sep 17 00:00:00 2001 From: Cyberguru1 Date: Sat, 10 Aug 2024 06:44:53 -0500 Subject: [PATCH] chore: change sender email address --- services/send/email.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/send/email.go b/services/send/email.go index c9f3bc9..2da3519 100644 --- a/services/send/email.go +++ b/services/send/email.go @@ -112,9 +112,10 @@ func (e *EmailRequest) sendEmailViaSMTP() error { sender := mailConfig.Username subject := e.Subject + From := "telex@hng.email" recipients := e.To mime := "\nMIME-version: 1.0;\nContent-Type: text/html; charset=\"UTF-8\";\n\n" - body := []byte(fmt.Sprintf("From: %s\r\nTo: %s\r\n%s%s%s", sender, recipients[0], subject, mime, e.Body)) + body := []byte(fmt.Sprintf("From: %s\r\nTo: %s\r\n%s%s%s", From, recipients[0], subject, mime, e.Body)) conn, err := tls.Dial( "tcp",