Skip to content

AutoDevBot/Email-Notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email-Notification

Build Status

Simple web service that sends an email on behalf of a client request. Uses nodemailer.

Getting started

  • Config Create your environment variables in your host environment or create a creds.js file in the application root (same level as app.js). Use creds.js.sample as a starting point.

  • Run server and tests

  1. Install the package dependencies. From the project root, run npm install.
  2. Verify the setup by running the tests, run jasmine-node spec/*.
  3. Start the server, run node app.js.

Sample cURL call to this server

Sending and email notification

curl -X POST \
-d "from=joe@exampl.com" \
-d "to=destination@example.com" \
-d "subject=An email notification" \
-d "text=This is the email body in text format" \
http://127.0.0.1/email

Checking the server's heartbeat

curl http://127.0.0.1/heartbeat

Docker Usage

Detailed instructions coming soon.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •