Releases: xhit/go-simple-mail
v2.8.1
Correct encryption types SSL/TLS and STARTTLS
Previously EncryptionTLS
correspond to STARTTLS and EncryptionSSL
correspond to SSL/TLS.
To avoid confusion in names, two new const were created:
EncryptionSTARTTLS
for STARTTLSEncryptionSSLTLS
for SSL/TLS
EncryptionTLS
and EncryptionSSL
are deprecated and will be removed in future.
Also, thanks for this contributors for these changes:
- Fix typo in error message 8dcac4e
- Properly detect mime type when attaching using base64 c1a7db7
v2.8.0
- Allows to use a helo other than 'localhost'.
- Fix add header to correct get from headers.
- RFC1870 fix (send size if extension is supported)
- Add golangci-lint action
- Changed
Encryption
type to be public so the value can be passed around
- New public function to get recipients of email
GetRecipients
- New function to send a RFC822 formatted message
SendMessage
v2.7.0
v2.6.0
Support add attachment data and inline data from []bytes
Thanks @falconandy
v2.5.1
v2.5.0
- Custom TLS Configuration
- Allow to unwrap textproto errors from smtp connection failures
This version requires Go 1.13+
Thanks to @codestation!
Ignore empty addresses
Bug fix release
- Fixed #2
- Refactor Connect func
Support authentication types
In this version is possible to specify PLAIN, LOGIN and CRAM-MD5 authentication
For this, in SMTPServer struct obtained by NewSMTPClient() function, the Authentication variable should be a authType: AuthPlain, AuthLogin, AuthCRAMMD5
If was not specified, default is AuthPlain.
Also, added compatibility to Go Modules.
SendTimeout improved
iota corrections and SendTimeout improved
- new private function sendMailProcess for send the mail. Function is called in private function send
- improved SendTimeout, if 0 then send call directly to sendMailProcess, else, sendMailProcess is called in goroutine and return the result in channel smtpSendChannel if timeout never happens
- change direction of iota for encryption, encoding, and contentType (this don't break anything)