This repository was archived by the owner on Nov 28, 2024. It is now read-only.
2.1.0
Added
- go-gomail#40: Adds
Dialer.LocalNamefield to allow specifying the hostname
sent with SMTP's HELO command. - go-gomail#47:
Message.SetBody,Message.AddAlternative, and
Message.AddAlternativeWriterallow specifying the encoding of message parts. Dialer.Dial's returnedSendCloserautomatically redials after a timeout.- go-gomail#55, go-gomail#56: Adds
Renameto allow specifying filename
of an attachment. - go-gomail#100: Exports
NetDialTimeoutto allow setting a custom dialer. - go-gomail#70: Adds
Dialer.Timeoutfield to allow specifying a timeout for
dials, reads, and writes.
Changed
- go-gomail#52:
Dialer.Dialautomatically uses CRAM-MD5 when available. Dialer.Dialspecifies 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:
NewPlainDialeris deprecated in favor ofNewDialer.
Fixed
- go-gomail#41, go-gomail#42: Fixes a panic when a
Messagecontains a
nil header. - go-gomail#44: Fixes
AddAlternativeWriterreplacing 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.FormatAddresswhen name is blank.