|
@@ -16,7 +16,7 @@ func SendResearchSummaryEmail(detail *cygx.DetailCygxResearchSummaryRep, touser
|
|
// return false
|
|
// return false
|
|
//}
|
|
//}
|
|
m := gomail.NewMessage()
|
|
m := gomail.NewMessage()
|
|
- m.SetHeader("From", "cygx@hzinsights.com ")
|
|
|
|
|
|
+ m.SetHeader("From", "hzcygx@hzinsights.com ")
|
|
//m.SetHeader("To", touser...)
|
|
//m.SetHeader("To", touser...)
|
|
var user []string
|
|
var user []string
|
|
user = append(user, "zwxi@hzinsights.com ")
|
|
user = append(user, "zwxi@hzinsights.com ")
|
|
@@ -271,7 +271,7 @@ func SendResearchSummaryEmail(detail *cygx.DetailCygxResearchSummaryRep, touser
|
|
}
|
|
}
|
|
bodyEnd := " </body>\n</html>"
|
|
bodyEnd := " </body>\n</html>"
|
|
m.SetBody("text/html", head+div+allBody+bodyEnd)
|
|
m.SetBody("text/html", head+div+allBody+bodyEnd)
|
|
- d := gomail.NewDialer("smtp.mxhichina.com", 465, "cygx@hzinsights.com", "Hzinsights2022")
|
|
|
|
|
|
+ d := gomail.NewDialer("smtp.mxhichina.com", 465, "hzcygx@hzinsights.com", "Hzinsights2024")
|
|
if err := d.DialAndSend(m); err != nil {
|
|
if err := d.DialAndSend(m); err != nil {
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
@@ -285,7 +285,7 @@ func SendMinutesSummaryEmail(detail *cygx.DetailCygxMinutesSummaryRep, touser []
|
|
// return false
|
|
// return false
|
|
//}
|
|
//}
|
|
m := gomail.NewMessage()
|
|
m := gomail.NewMessage()
|
|
- m.SetHeader("From", "cygx@hzinsights.com ")
|
|
|
|
|
|
+ m.SetHeader("From", "hzcygx@hzinsights.com ")
|
|
//m.SetHeader("To", touser...)
|
|
//m.SetHeader("To", touser...)
|
|
var user []string
|
|
var user []string
|
|
user = append(user, "zwxi@hzinsights.com ")
|
|
user = append(user, "zwxi@hzinsights.com ")
|
|
@@ -429,7 +429,7 @@ func SendMinutesSummaryEmail(detail *cygx.DetailCygxMinutesSummaryRep, touser []
|
|
}
|
|
}
|
|
bodyEnd := " </body>\n</html>"
|
|
bodyEnd := " </body>\n</html>"
|
|
m.SetBody("text/html", head+div+allBody+bodyEnd)
|
|
m.SetBody("text/html", head+div+allBody+bodyEnd)
|
|
- d := gomail.NewDialer("smtp.mxhichina.com", 465, "cygx@hzinsights.com", "Hzinsights2022")
|
|
|
|
|
|
+ d := gomail.NewDialer("smtp.mxhichina.com", 465, "hzcygx@hzinsights.com", "Hzinsights2024")
|
|
if err := d.DialAndSend(m); err != nil {
|
|
if err := d.DialAndSend(m); err != nil {
|
|
return false
|
|
return false
|
|
}
|
|
}
|