Closed joeyadams closed 9 years ago
This sounds great! I'll be looking forward to your pull request.
I'm assuming this never happened?
@alevy Apparently not.
This fork has has seen a lot more development progress. Check it out, it may have what you're looking for: https://github.com/avieth/smtp-mail
I'm just creating this ticket to prevent duplicated work. I'm working on TLS support right now.
First, I'm going to make a pure interface to the SMTP functionality by using a beautiful dependency injection technique:
The protocol functions (
sendCommand
, etc.) will be in theMonadSMTP
class:And the caller will provide a MonadSMTP instance that provides all of the requested capabilities.
This has several benefits:
SMTPConnection
down the call chain. A Reader monad would provide the same benefit.smtp-conduit
package