Skip to content

bomaidea/smapi

Repository files navigation

smapi

Send Email HTTP API

Install

git clone https://github.com/bomaidea/smapi.git && cd smapi
docker build -t smapi .
docker run -p 3000:3000 \
  -e host="smtp.example.com" \
  -e provider="example" \
  -e user="smtp_user" \
  -e pass="smtp_pass" \
  -e to="to_email" \
  -d smapi

Test

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"from":"john@example.com","subject":"Subject Email Test","message":"Message Email Test"}' \
  http://localhost:3000/send

About

Send Email HTTP API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published