Mail gw
Node.js wrapper for https://mail.gw/ API
Installation
NPM
npm i mail-gw-api-wrapper
Domain
List Domains
mail.domains((result) => {
console.log(result);
})
Get Domain
mail.domain("domain id", (result) => {
console.log(result);
})
Account
Create Account
mail.create("user@example.com", "password", (result) => {
console.log(result);
});
Login
mail.login("user@example.com", "password", (result) => {
console.log(result);
})
Logout
mail.logout((result) => {
console.log(result);
})
Get Account Data
mailjs.me((result) => {
console.log(result);
})
Message
List messages
mailjs.messages((result) => {
console.log(result);
})
Read a message
mailjs.message("message id", (result) => {
console.log(result);
})
Delete a message
mailjs.deleteMessage("message id", (result) => {
console.log(result);
})