From e0107849a513b754c5d1ff7d1f90d1e9bfbc267c Mon Sep 17 00:00:00 2001 From: teddy Date: Fri, 18 Apr 2025 19:21:18 +0700 Subject: [PATCH] update --- app/mail-config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/mail-config.go b/app/mail-config.go index 26a4d31..377daa3 100644 --- a/app/mail-config.go +++ b/app/mail-config.go @@ -37,6 +37,8 @@ func SendEmail(to []string, cc []string, name, subject, message, htmlString stri body := htmlString messages := []byte(sender + subjectt + mime + body) + fmt.Println("cek env smtp", Mail()) + auth := smtp.PlainAuth("", Mail().AuthEmail, Mail().AuthPassword, Mail().SMTPHost) smtpAddr := fmt.Sprintf("%s:%d", Mail().SMTPHost, Mail().SMTPPort)