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

Allow direct embedding of embed.FS files #29

Closed wneessen closed 2 years ago

wneessen commented 2 years ago

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

In this discussion: https://github.com/wneessen/go-mail/discussions/27#discussioncomment-3055427 I was made aware, that users might want to embed/attach files via embed.FS - meaning files that are directly shipped in the go binary. This is currently possible via opening the embed.FS file and then using EmbedReader. We might consider adding direct embed.FS support for ease of use.

Describe the solution you'd like

I see two possible solutions:

Describe alternatives you've considered

No response

Additional context

No response