a simple microservice to deliver emails through sendgrid api
$ go get github.com/sendgrid/sendgrid-go
$ go build
$ SG_API_USER=username SG_API_KEY=password ./mailserver
$ docker build -t mailserver .
$ docker run -d \
-p 3000:3000 \
-e SG_API_USER=user \
-e SG_API_KEY=password \
mailserver
$ curl \
-H "from: [email protected]" \
-H "to: [email protected]" \
-H "subject: Sending an email" \
-d "<h1>some html</h1><p>or plain text</p>" \
http://localhost:3000/send
Content type
Image
Digest
sha256:6e5987dcc…
Size
-
Last updated
over 11 years ago
docker pull caarlos0/mailserver