This commit is contained in:
teddy
2025-04-18 19:21:18 +07:00
parent 9f7cde6b67
commit e0107849a5

View File

@@ -37,6 +37,8 @@ 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)