github wneessen/go-mail v0.3.0
v0.3.0: Access to message body parts

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

This release introduces a couple of new methods on the Msg as well as the Part. This will help the Msg.Middleware to be more extensible since we allow access not only to headers but also to body parts.

To get the Msg body parts, one can now utilize the Msg.GetParts() methods to get the list of currently assigned message parts to the Msg.

Each Part has now an additional list of getters/setters, to read and modify the given part:

  • Part.GetContent(): get the parts content
  • Part.GetContentType(): get the parts content type
  • Part.GetEncoding(): get the parts encoding
  • Part.GetWriteFunc(): get the parts write function

Each of these Part.Get*() methods also has an corresponding Part.Set*() methods what overrides the current value

Noteworthy changes

  • a3a2b0e Introduces the new getter/setter methods

Don't miss a new go-mail release

NewReleases is sending notifications on new releases.