wneessen / go-mail

📧 Easy to use, yet comprehensive library for sending mails with Go
https://go-mail.dev
MIT License
571 stars 44 forks source link

Add possibility to set dedicated envelope from and mail body from address #21

Closed wneessen closed 2 years ago

wneessen commented 2 years ago

Is your feature request related to a problem? Please describe.

In some scenarios we want to use a different envelope from address than the mail body from address that is presented in the MUA (i. e. marketing campaigns may want to use a different envelope from address to record bounces)

Describe the solution you'd like

We should have a way to set a dedicated envelope from address. If not set, the mail body from address will be used instead. If only envelope from is set, it will be used in both envelope and mail body.

Describe alternatives you've considered

No response

Additional context

No response