Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.
/ Mail-Notify Public archive

A simple email notification program which wrote by Node.js

License

Notifications You must be signed in to change notification settings

IITII/Mail-Notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mail Notify

A simple email notification program via get method.

  • First of All, rename sample_config.json to config.json

Mail config

nodemailer.createTransport({
  host: "my.smtp.host",
  port: 465,
  secure: true, // use TLS
  auth: {
    user: "username",
    pass: "pass"
  },
  tls: {
    // do not fail on invalid certs
    rejectUnauthorized: false
  }
});

Use

  • Some example
curl http://192.168.12.1:3000/\?authMethod\=3\&fromEmail\=no-reply@baidu.cn\&toEmail\=test@baidu.cn\&sender\=Test\&subject\=cURLTest\&text\=test
curl http://192.168.12.1:3000/\?authMethod\=4\&name=1\&pass=1\&fromEmail\=no-reply@baidu.cn\&toEmail\=test@baidu.cn\&sender\=Test\&subject\=cURLTest\&text\=test

Any problem ?

  • Just open a issue and I'll work for you.

About

A simple email notification program which wrote by Node.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published