Releases: go-mail/mail
Releases · go-mail/mail
v2.3.1
v2.3.0
Added
- #12: Adds
SendError
to provide additional info about the cause and index of
a failed attempt to transmit a batch of messages. - go-gomail#78: Adds new
Message
methods for attaching and embedding
io.Reader
s:AttachReader
andEmbedReader
. - #39: Adds support for Go modules (Go 1.11+).
Fixed
2.2.0
Added
- #20: Adds
Message.SetBoundary
to allow specifying a custom MIME boundary. - #22: Adds
Message.SetBodyWriter
to make it easy to use text/template and
html/template for message bodies. Contributed by Quantcast. - #25: Adds
Dialer.StartTLSPolicy
so thatMandatoryStartTLS
can be required,
orNoStartTLS
can disable it. Contributed by Quantcast.
2.1.0
Added
- go-gomail#40: Adds
Dialer.LocalName
field to allow specifying the hostname
sent with SMTP's HELO command. - go-gomail#47:
Message.SetBody
,Message.AddAlternative
, and
Message.AddAlternativeWriter
allow specifying the encoding of message parts. Dialer.Dial
's returnedSendCloser
automatically redials after a timeout.- go-gomail#55, go-gomail#56: Adds
Rename
to allow specifying filename
of an attachment. - go-gomail#100: Exports
NetDialTimeout
to allow setting a custom dialer. - go-gomail#70: Adds
Dialer.Timeout
field to allow specifying a timeout for
dials, reads, and writes.
Changed
- go-gomail#52:
Dialer.Dial
automatically uses CRAM-MD5 when available. Dialer.Dial
specifies a default timeout of 10 seconds.- Gomail is forked from https://github.com/go-gomail/gomail/ to
https://github.com/go-mail/mail/.
Deprecated
- go-gomail#52:
NewPlainDialer
is deprecated in favor ofNewDialer
.
Fixed
- go-gomail#41, go-gomail#42: Fixes a panic when a
Message
contains a
nil header. - go-gomail#44: Fixes
AddAlternativeWriter
replacing the message body instead
of adding a body part. - go-gomail#53: Folds long header lines for RFC 2047 compliance.
- go-gomail#54: Fixes
Message.FormatAddress
when name is blank.