Skip to content

Releases: wneessen/go-mail

v0.2.3: File output support

09 Jun 08:25
afa847d

Choose a tag to compare

This release adds support for writing mail messages directly into a file. We've added two methods:

  • Msg.WriteToTempFile() which will automatically generated a .eml file localted in the OS' temporary directory
  • Msg.WriteToFile() which takes a filename as argument and stores the output of the mail message into that file

If the message output is stored with a .eml file extension, the mail is usually detected as such and can be directly opened with the OS' MUA. This has been tested with Mail.App, Thunderbird and Outlook.

Noteworthy changes

  • #18 adds the support for the file output
  • bc9b39f switched the go.mod minimum version to 1.16, since we can fully support this

v0.2.2: Template support

03 Jun 11:39
d10dc92

Choose a tag to compare

This release adds support for html/template and text/template to go-mail. You are now able to utilize several methods to write the message body, add alternative body parts, add attachments or add embeds using Go's template engine.

Noteworthy changes

  • #13 adds template support
  • #14 started an effort to add more code examples to the documentation. This is an ongoing initiative,

v0.2.1: io.Reader interface

28 May 09:09
069ffa0

Choose a tag to compare

This release adds a Msg.Read() method to go-mail, so that it satisfies the io.Reader interface which allows us to e. g. use io.Copy to dump a message to a io.Writer

Changes

v0.2.0: Fixes in WriteTo() and WriteToSendmail()

27 May 11:02
c001ac5

Choose a tag to compare

This release fixes two bugs in the msg.WriteTo() and the msg.WriteToSendmail() methods

Changes

  • 4fe503d Fixes hanging reads in the msg.WriteToSendmail() method (see #7) Thanks to @inliquid for the PR
  • ebef1fe Fixes a bug in msg.WriteTo() that would not output the message body on subsequent calls to msg.WriteTo() after the first invocation of msg.WriteTo() (see #8). Thanks @inliquid for the bug report

v0.1.9: Satisfy io.WriteTo interface and fix in WriteToSendmail*

25 May 14:49
db9358f

Choose a tag to compare

Changes

  • 894ff71: Renamed msg.Write to msg.WriteTo to satisfy the io.WriteTo interface
  • 070eb39: Forcefully closing the STDIN pipe in the msg.WriteToSendmail* methods
  • fa7066c: Use /usr/sbin/sendmail as default location for the sendmail binary

v0.1.8: First release

21 Mar 14:13
22d679c

Choose a tag to compare

Changelog

  • 6a446bd fixes an issue in the SMTP AUTH module for "LOGIN" in case the server responds with an "Authentcation successful" response, which isn't really expected
  • 030eba8 Sets default headers if they are not set, also the generic headers are now sorted before writing

Since we finally reached a test coverage of 85%, this will be the first non pre-release.

Another fix for writeHeader()

20 Mar 17:21
3afc3f2

Choose a tag to compare

Pre-release

Changelog

  • d448f05 fixes a bug in writeHeader(), that was producing double-spaces at line breaks for headers

v0.1.6: Fixes in header

20 Mar 16:42
b852a52

Choose a tag to compare

Pre-release

Changelog

  • b6d90ea Removes the nil checking for the *Reader() methods, as it's unnessacary
  • d6f131c and 68049b5 both address the returned written byte length in from various write functions. All tests show matching results now
  • b852a52 fixes writeHeader() to produce header that are more RFC5322 compliant

v0.1.5: Fix for race condition in WriteToSendmailWithContext()

18 Mar 22:44
a734a65

Choose a tag to compare

Changelog

  • 0e00b16 fixes a race condition in the WriteToSendmailWithContext() method
  • 3c642be introduces WriteToSendmailWithCommend() which is more generic and takes a command to sendmail

v0.1.4: Change in Write functions and lots of test **BREAKING CHANGE**

18 Mar 16:36
00264b6

Choose a tag to compare

Changelog

  • BREAKING CHANGE 709b4e6 adds an int64 return value to the various Writer functions. A test on the Msg.Write() method showed, that the returned number of bytes does not match the actul number of bytes returned. Reason for this was that the body writing methods were not counting the bytes, which I see as an incorrect behaviour. By returning the int64 value of written bytes the test will succeed again
  • Lots of tests have been added. Almost 40% of additional code coverage has been added since the last pre-release
  • bfcd52b adds String() methods to Header and AddrHeader
  • 4585a53 adds error return values to Option functions that require input validation
  • a87577d introduces the proper encoding of filenames for Attachments and Embeds
  • ce1c37b adds error checks for Msg.AttachFile() and Msg.EmbedFile(). If a file cannot be read it will be ignored and not added to the mail