Documentation
¶
Index ¶
Constants ¶
View Source
const (
// MaxLineLength is the maximum line length per RFC 2045
MaxLineLength = 76
)
Variables ¶
This section is empty.
Functions ¶
func TrimAddresses ¶
TrimAddresses workaround for go < 1.15
Types ¶
type Builder ¶ added in v0.0.4
type Builder struct {
From *mail.Address
To []*mail.Address
ReplyTo *mail.Address
Body string
Subject string
// contains filtered or unexported fields
}
Builder builds emails
func (*Builder) Send ¶ added in v0.0.4
func (b *Builder) Send(cfg *SMTPConfig) (err error)
Send sends the email
type SMTPConfig ¶ added in v0.0.5
type SMTPConfig struct {
Server string
Username string
Password string
FromOverride *mail.Address
Helo string
InsecureTLS bool
NoTLS bool
StartTLS bool
}
SMTPConfig smtp configuration
type SplittingWritter ¶ added in v0.0.4
type SplittingWritter struct {
// contains filtered or unexported fields
}
SplittingWritter writes a stream and inserts a terminator
Click to show internal directories.
Click to hide internal directories.