Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct {
Auth smtp.Auth
Header map[string]string
Template *template.Template
// TLSConfig, when non-nil, is used for both implicit TLS (SMTPS)
// and STARTTLS. Callers that need a custom root pool or a
// specific ServerName should set this. The config is cloned per
// dial, so callers can reuse a single value across sends; they
// must not mutate it concurrently with an in-flight Send.
TLSConfig *tls.Config
// DialTimeout caps the TCP (and, for SMTPS, TLS) connect phase.
// It does not bound the full SMTP conversation after the client
// is returned. Zero means no caller-imposed timeout.
DialTimeout time.Duration
// contains filtered or unexported fields
}
type Message ¶
type Message struct {
ID string `json:"id"`
From string `json:"from"`
To string `json:"to"`
CC string `json:"cc"`
Subject string `json:"subject"`
BodyText string `json:"body_text"`
BodyHTML string `json:"body_html"`
Inlines []*File `json:"inlines"`
Attachments []*File `json:"attachments"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.