MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / sendEmailNotify

Function sendEmailNotify

service/user_notify.go:58–66  ·  view source on GitHub ↗
(userEmail string, data dto.Notify)

Source from the content-addressed store, hash-verified

56}
57
58func sendEmailNotify(userEmail string, data dto.Notify) error {
59 // make email content
60 content := data.Content
61 // 处理占位符
62 for _, value := range data.Values {
63 content = strings.Replace(content, dto.ContentValueParam, fmt.Sprintf("%v", value), 1)
64 }
65 return common.SendEmail(data.Title, userEmail, content)
66}

Callers 1

NotifyUserFunction · 0.85

Calls 1

SendEmailFunction · 0.92

Tested by

no test coverage detected