(config ...ConfigEmail)
| 333 | } |
| 334 | |
| 335 | func 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 收件人 |
nothing calls this directly
no test coverage detected