MCPcopy Index your code
hub / github.com/dnote/dnote / getEmailBackend

Function getEmailBackend

pkg/server/cmd/helpers.go:40–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40func getEmailBackend() mailer.Backend {
41 defaultBackend, err := mailer.NewDefaultBackend()
42 if err != nil {
43 log.Debug("SMTP not configured, using StdoutBackend for emails")
44 return mailer.NewStdoutBackend()
45 }
46
47 log.Debug("Email backend configured")
48 return defaultBackend
49}
50
51func initApp(cfg config.Config) app.App {
52 db := initDB(cfg.DBPath)

Callers 1

initAppFunction · 0.85

Calls 3

NewDefaultBackendFunction · 0.92
DebugFunction · 0.92
NewStdoutBackendFunction · 0.92

Tested by

no test coverage detected