Skip to content

Releases: xhit/go-simple-mail

v2.8.1

02 Apr 16:27
Compare
Choose a tag to compare

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 STARTTLS
  • EncryptionSSLTLS for SSL/TLS

EncryptionTLS and EncryptionSSL are deprecated and will be removed in future.

Also, thanks for this contributors for these changes:

@simaotwx

  • Fix typo in error message 8dcac4e

@simonerota

  • Properly detect mime type when attaching using base64 c1a7db7

v2.8.0

15 Feb 19:33
4b5ef39
Compare
Choose a tag to compare

@davrux:

  • Allows to use a helo other than 'localhost'.

@norguhtar

  • Fix add header to correct get from headers.
  • RFC1870 fix (send size if extension is supported)

@alex1989hu

  • Add golangci-lint action

@yene

  • Changed Encryption type to be public so the value can be passed around

@vjeantet

  • New public function to get recipients of email GetRecipients
  • New function to send a RFC822 formatted message SendMessage

v2.7.0

15 Dec 16:46
8c83ee5
Compare
Choose a tag to compare
  • Allow sending mail with different envelope from. Thanks @davrux
  • Allow change From of message.

v2.6.0

10 Dec 16:19
3b3f126
Compare
Choose a tag to compare

Support add attachment data and inline data from []bytes

Thanks @falconandy

v2.5.1

19 Aug 03:03
d1e7602
Compare
Choose a tag to compare

Support SMTPUTF8 extension to send email to addresses that contains UTF-8 characters

v2.5.0

16 Jul 02:42
Compare
Choose a tag to compare
  • Custom TLS Configuration
  • Allow to unwrap textproto errors from smtp connection failures

This version requires Go 1.13+

Thanks to @codestation!

Ignore empty addresses

26 May 15:48
5806fb9
Compare
Choose a tag to compare

Bug fix release

11 Apr 20:07
Compare
Choose a tag to compare
  • Fixed #2
  • Refactor Connect func

Support authentication types

17 Dec 00:28
Compare
Choose a tag to compare

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

27 Oct 03:18
Compare
Choose a tag to compare

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)