Deploy at heroku
Server:https://email-bot.herokuapp.com
interface Options{
from: string,
to: string,
subject: string,
text: string,
html: string
}
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);
});
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);
});
git clone https://github.com/axetroy/email-service.git
cd ./email-service
yarn
yarn start
You can flow Contribute Guide
Axetroy 💻 🔌 |
---|
The MIT License