Unofficial Mailazy NodeJs SDK Client with some internal boost (faster & less-buggy)
- Node.js version >= 10
- Mailazy account, sign up for free to send up to 50,000 email/month free.
You need a sender/domain authenticated account in order to generate Access Keys from the Mailazy Console
npm:
npm install mailazy-api
yarn:
yarn add mailazy-api
const MailazyClient = require('mailazy-api');
const client = new MailazyClient({ accessKey: '', accessSecret: '' });
const fn = async () => {
try {
const resp = await client.send({
to: '[email protected]', // required
from: '[email protected]', // Use domain you verified, required
subject: '', // required
text: '',
html: '',
});
console.log("resp: " + resp);
} catch (e) {
console.log("errror: " + e);
}
}
fn();
MIT © Mailazy & Angrymouse