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)