github wneessen/go-mail v0.2.3
v0.2.3: File output support

latest releases: v0.7.2, v0.7.1, v0.7.0...
3 years ago

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

Don't miss a new go-mail release

NewReleases is sending notifications on new releases.