Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

sendmail SendFunc? #71

Open
prologic opened this issue Jan 25, 2021 · 4 comments
Open

sendmail SendFunc? #71

prologic opened this issue Jan 25, 2021 · 4 comments

Comments

@prologic
Copy link

Is anyone away of any implementations of SendFunc that knows how to send the email message via a local sendmail binary with fork/exec?

@wneessen
Copy link

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

@prologic
Copy link
Author

@wneessen Thanks! I'll check it out 👌 How is your mail package different from this one? Should I consider switching to it? 🤔

@wneessen
Copy link

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.

@prologic
Copy link
Author

@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 sendmail 👌

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants