This commit is contained in:
teddy
2025-04-18 19:41:54 +07:00
parent 1f923cb66b
commit 6d09d425c2

View File

@@ -37,8 +37,6 @@ func SendEmail(to []string, cc []string, name, subject, message, htmlString stri
body := htmlString body := htmlString
messages := []byte(sender + subjectt + mime + body) messages := []byte(sender + subjectt + mime + body)
fmt.Println("cek env smtp", Mail())
auth := smtp.PlainAuth("", Mail().AuthEmail, Mail().AuthPassword, Mail().SMTPHost) auth := smtp.PlainAuth("", Mail().AuthEmail, Mail().AuthPassword, Mail().SMTPHost)
smtpAddr := fmt.Sprintf("%s:%d", Mail().SMTPHost, Mail().SMTPPort) smtpAddr := fmt.Sprintf("%s:%d", Mail().SMTPHost, Mail().SMTPPort)