MCPcopy Create free account
hub / github.com/labstack/gommon / Email

Struct Email

email/email.go:16–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15type (
16 Email struct {
17 Auth smtp.Auth
18 Header map[string]string
19 Template *template.Template
20 // TLSConfig, when non-nil, is used for both implicit TLS (SMTPS)
21 // and STARTTLS. Callers that need a custom root pool or a
22 // specific ServerName should set this. The config is cloned per
23 // dial, so callers can reuse a single value across sends; they
24 // must not mutate it concurrently with an in-flight Send.
25 TLSConfig *tls.Config
26 // DialTimeout caps the TCP (and, for SMTPS, TLS) connect phase.
27 // It does not bound the full SMTP conversation after the client
28 // is returned. Zero means no caller-imposed timeout.
29 DialTimeout time.Duration
30 smtpAddress string
31 }
32
33 Message struct {
34 ID string `json:"id"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected