-
Notifications
You must be signed in to change notification settings - Fork 76
sendmail
SendFunc?
#71
Comments
Not sure if that's still needed, but I've implemented a similar functionality in my go-mail library. Maybe you can find some hint in there for your own purposes: https://github.com/wneessen/go-mail/blob/main/msg.go#L469 |
@wneessen Thanks! I'll check it out 👌 How is your mail package different from this one? Should I consider switching to it? 🤔 |
It's not that different. It borrows some ideas from this library but I wanted to implement modern/idomatic Go. Shouldn't be too much effort to migrate. I've wanted to make sure that the usage is very simple, so it implements lot's of convenice methods. I. e. while you would use SetAddrHeader() in here, you can still do that with my lib too but it also provides helper methods like From(), To(), Cc(), as well as formating helpers FromFormat(), etc. Please also note, my lib is very "fresh" and not yet tested very well. |
@wneessen Sounds intriguing, but I do have a lot on my plate at the moment... Perhaps if you're interested you could submit a pull request to my project? You'd have to of course make sure existing mail functionality works, and add and test support for |
Is anyone away of any implementations of
SendFunc
that knows how to send the email message via a localsendmail
binary with fork/exec?The text was updated successfully, but these errors were encountered: