Skip to content
Provide Email Service implement by NodeJs
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
lib
.all-contributorsrc
.editorconfig
.gitignore
.gpmrc
.npmignore
.travis.yml
LICENSE
README.md
contributing.md
package.json
server.js
yarn.lock

README.md

Provide Email Service implement by NodeJs

Build Status Dependency License Prettier Node heroku Size

Deploy at heroku

Server:https://email-bot.herokuapp.com

Usage

interface Options{
    from: string,
    to: string,
    subject: string,
    text: string,
    html: string
}

.get('/')

query: Options

Example:

fetch(
  'https://email-bot.herokuapp.com?from=Axetroy <axetroy@163.com>&to=example@gmail.com&subject=hello&text=hello&html=<h2>hello</h2>'
)
  .then(function(res) {
    console.log(res);
  })
  .catch(function(err) {
    console.log(err);
  });

.post('/')

Example:

fetch('https://email-bot.herokuapp.com', {
  method: 'POST',
  body: JSON.stringify({
    from: 'Axetroy <axetroy@163.com>',
    to: 'example@gmail.com',
    subject: 'hello',
    text: 'hello',
    html: '<h2>hello</h2>'
  })
})
  .then(function(res) {
    console.log(res);
  })
  .catch(function(err) {
    console.log(err);
  });

Contributing

git clone https://github.com/axetroy/email-service.git
cd ./email-service
yarn
yarn start

You can flow Contribute Guide

Contributors


Axetroy

💻 🔌 ⚠️ 🐛 🎨

License

The MIT License

You can’t perform that action at this time.