MCPcopy Create free account
hub / github.com/ethstorage/es-node / getEmailConfig

Function getEmailConfig

cmd/priv-dashboard/main.go:348–361  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346}
347
348func getEmailConfig() (*email.EmailConfig, error) {
349 cfg := &email.EmailConfig{
350 Username: *emailUsernameFlag,
351 Password: *emailPasswordFlag,
352 Host: *emailHostFlag,
353 Port: uint64(*emailPortFlag),
354 To: *emailToFlag,
355 From: *emailFromFlag,
356 }
357 if err := cfg.Check(); err != nil {
358 return nil, fmt.Errorf("email config check error: %w", err)
359 }
360 return cfg, nil
361}
362
363func main() {
364 // Parse the flags and set up the lg to print everything requested

Callers 1

mainFunction · 0.85

Calls 1

CheckMethod · 0.95

Tested by

no test coverage detected