MCPcopy Index your code
hub / github.com/coder/coder / SMTPHandler

Struct SMTPHandler

coderd/notifications/dispatch/smtp.go:50–56  ·  view source on GitHub ↗

SMTPHandler is responsible for dispatching notification messages via SMTP. NOTE: auth and TLS is currently *not* enabled in this initial thin slice. TODO: implement DKIM/SPF/DMARC? https://github.com/emersion/go-msgauth

Source from the content-addressed store, hash-verified

48// NOTE: auth and TLS is currently *not* enabled in this initial thin slice.
49// TODO: implement DKIM/SPF/DMARC? https://github.com/emersion/go-msgauth
50type SMTPHandler struct {
51 cfg codersdk.NotificationsEmailConfig
52 log slog.Logger
53
54 noAuthWarnOnce sync.Once
55 loginWarnOnce sync.Once
56}
57
58func NewSMTPHandler(cfg codersdk.NotificationsEmailConfig, log slog.Logger) *SMTPHandler {
59 return &SMTPHandler{cfg: cfg, log: log}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected