https://github.com/alash3al/go-smtpsrv
a tiny package that implements SMTP server for Go projects
https://github.com/alash3al/go-smtpsrv
go golang smtp smtp-library smtp-server
Last synced: 12 months ago
JSON representation
a tiny package that implements SMTP server for Go projects
- Host: GitHub
- URL: https://github.com/alash3al/go-smtpsrv
- Owner: alash3al
- License: mit
- Archived: true
- Created: 2018-10-23T13:29:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-10T07:01:18.000Z (over 2 years ago)
- Last Synced: 2024-06-19T17:28:26.301Z (about 2 years ago)
- Topics: go, golang, smtp, smtp-library, smtp-server
- Language: Go
- Size: 57.6 KB
- Stars: 105
- Watchers: 2
- Forks: 27
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A SMTP Server Package [](https://godoc.org/github.com/alash3al/go-smtpsrv)
=============================
a simple smtp server library for writing email servers like a boss.
Quick Start
===========
> `go get github.com/alash3al/go-smtpsrv`
```go
package main
import (
"fmt"
"github.com/alash3al/go-smtpsrv/v3"
)
func main() {
handler := func(c smtpsrv.Context) error {
// ...
return nil
}
cfg := smtpsrv.ServerConfig{
BannerDomain: "mail.my.server",
ListenAddr: ":25025",
MaxMessageBytes: 5 * 1024,
Handler: handler,
}
fmt.Println(smtpsrv.ListenAndServe(&cfg))
}
```
Thanks
=======
- [parsemail](https://github.com/DusanKasan/parsemail)
- [go-smtp](github.com/emersion/go-smtp)