Initial commit

This commit is contained in:
Neil Alexander
2021-07-07 18:15:07 +01:00
commit ceffe7612d
26 changed files with 2130 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package smtpserver
import (
"github.com/emersion/go-smtp"
)
type SMTPServer struct {
server *smtp.Server
backend smtp.Backend
}
func NewSMTPServer(backend smtp.Backend) *SMTPServer {
s := &SMTPServer{
server: smtp.NewServer(backend),
backend: backend,
}
return s
}