MCPcopy Index your code
hub / github.com/TruthHun/DocHub / NewEmail

Function NewEmail

models/ConfigModel.go:335–344  ·  view source on GitHub ↗
(config ...ConfigEmail)

Source from the content-addressed store, hash-verified

333}
334
335func NewEmail(config ...ConfigEmail) *ConfigEmail {
336 if len(config) > 0 {
337 return &config[0]
338 }
339 cfg := NewConfig().GetGlobalConfigWithStruct(ConfigCateEmail)
340 if cfg != nil {
341 return cfg.(*ConfigEmail)
342 }
343 return &ConfigEmail{}
344}
345
346//发送邮件
347//@param to string 收件人

Callers

nothing calls this directly

Calls 2

NewConfigFunction · 0.85

Tested by

no test coverage detected