diff --git a/helper/helper.go b/helper/helper.go
index 3047229..2b395bd 100644
--- a/helper/helper.go
+++ b/helper/helper.go
@@ -11,6 +11,7 @@ import (
"net/http"
"net/smtp"
"reflect"
+ "strings"
"time"
"github.com/go-playground/validator/v10"
@@ -76,9 +77,11 @@ func FormatSince(t time.Time) string {
func SendEmail(to []string, cc []string, name, subject, message, htmlString string) error {
sender := "From: HIS \n"
subjectt := "Subject: " + subject + "\n"
- mime := "MIME-version: 1.0;\nContent-Type: text/html; charset=\"UTF-8\";\n\n"
+ mime := "MIME-Version: 1.0\nContent-Type: text/html; charset=\"UTF-8\";\n\n"
body := htmlString
- messages := []byte(sender + subjectt + mime + body)
+ emailTo := "To:" + strings.Join(to, ",") + "\n"
+ emailCC := "Cc: " + strings.Join(cc, ",") + "\n"
+ messages := []byte(sender + emailTo + emailCC + subjectt + mime + body)
for _, v := range cc {
if v != "" {
diff --git a/template/birthday.html b/template/birthday.html
index dcdb8d9..6e852f2 100644
--- a/template/birthday.html
+++ b/template/birthday.html
@@ -47,7 +47,7 @@
HIS
diff --git a/template/general.html b/template/general.html
index 7ee0510..fb3cda7 100644
--- a/template/general.html
+++ b/template/general.html
@@ -45,7 +45,7 @@