Mailazy NodeJs SDK Client
- Node.js version >= 10
- Mailazy account, sign up for free.
You need a sender/domain authenticated account in order to generate Access Keys from the Mailazy Console
npm:
npm install mailazy-node
yarn:
yarn add mailazy-node
const MailazyClient = require('mailazy-node');
const client = new MailazyClient({ accessKey: '', accessSecret: '' });
const fn = async () => {
try {
const resp = await client.send({
to: 'test@example.com', // required
from: 'no-reply@example.com', // Use domain you verified, required
subject: '', // required
text: '',
html: '',
reply_to: 'someone@example.com'
});
console.log('resp: ' + resp);
} catch (e) {
console.log('error: ' + e);
}
};
fn();
MIT © Mailazy