Skip to content

taterbase/smtp-callback-verification

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMTP Callback Verification

A simple REST API service to verify email addresses. Using SMTP Callback Verification.

Usage

Make a request.

curl -i "http://localhost/verify/?email=paul@gmail.com"

Which generates the following response.

{
  "email": "paul@gmail.com",
  "isValid": true
}

Running it locally

  1. Build project with Go. go build
  2. Spin up server locally. PORT=8080 ./smtp-callback-verification Note that server port is read from the environment.
  3. Send a request. curl -i "http://localhost:8080/verify/?email=paul@gmail.com"

Deploy to Heroku

  1. Create a Heroku app with Go buildpack. heroku create -b https://github.com/kr/heroku-buildpack-go.git
  2. Deploy this app to Heroku. git push heroku master
  3. Send a request. curl -i "http://<YOUR_APP>.herokuap.com/verify/?email=paul@gmail.com"

About

A simple REST API service to verify email addresses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%