Skip to content

v0.2.4: Dedicated envelope from address

Compare
Choose a tag to compare
@wneessen wneessen released this 13 Jun 08:50
· 1117 commits to main since this release
d9491ee

This release adds support for setting a different envelope from address than the actual from address in the mail body. We've added two methods:

  • Msg.EnvelopeFrom() which will set the envelope from address analogous to the Msg.From() method
  • Msg.EnvelopeFromFormat() which will set a formated envelope from address analogous to the Msg.FromFormat() method

Msg.GetSender() which is used by the Client has been adjusted to return the envelope from in favour of the mail body from address. If no envelope from is set, it will still use the normal mail body from address as envelope from. The MsgWriter has been adjusted accordingly to only use the envelope from address if the mail body from address is not set.

Noteworthy changes

  • #21 implements the envelope from changes