Skip to content

v0.2.3: File output support

Compare
Choose a tag to compare
@wneessen wneessen released this 09 Jun 08:25
· 1355 commits to main since this release
afa847d

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