项目作者: FredrikBlix

项目描述 :
HTTP-request email sender
高级语言: JavaScript
项目地址: git://github.com/FredrikBlix/email-sender.git
创建时间: 2018-12-12T15:21:11Z
项目社区:https://github.com/FredrikBlix/email-sender

开源协议:GNU Lesser General Public License v3.0

下载


email-sender

This application is and HTTP-service email sender. It sends emails and stores them in a mongo database.

It is build in node and uses nodemailer for sending emails.

Environental variables

email_Port - HTTP server port (default: 80)

email_SMTP_HOST - smtp server

email_SMTP_PORT - smtp server port

email_SMTP_SECURE - should not be set for all ports except 465

email_SMTP_USERNAME - smtp username

email_SMTP_PASSWORD - smtp password

email_DB_HOST - MongoDB host

email_DB_PORT - MongoDB port (default: 27071)

email_DB_NAME - Database name

email_DB_USERNAME - Database username

email_DB_PASSWORD - Database password

email_MONGODB_OPTIONS - mongo database connection options

Docker

To run a docker image with this code, use the docker-compose.yml file, found in the repo or run using the docker command:

  1. $ sudo docker run --detach \
  2. --publish 8080:80 \
  3. --name email-sender \
  4. --restart always \
  5. --net=bridge \
  6. --env email_SMTP_HOST="smtp.server.com" \
  7. --env email_SMTP_PORT="25" \
  8. --env email_SMTP_SECURE= \
  9. fredrikblix/email-sender:latest