sendy-client
v1.0.3
Published
Sendy mailer api client
Downloads
4
Readme
CT Sendy Client
Sendy mailer api client
Code samples
var sendy_client = require('sendy-client');
let sendy_config = {};
const API_KEY = process.env.API_KEY;
sendy_config.SENDY_URL = process.env.SENDY_URL;
sendy_config.SENDY_AUTH_USER = process.env.SENDY_AUTH_USER;
sendy_config.SENDY_AUTH_PASS = process.env.SENDY_AUTH_PASS;
let sendy = new sendy_client(sendy_config);
var payload = {
api_key: API_KEY,
email: '[email protected]',
title: 'Hi Sendy-Client',
html: 'Hi from sendy-client'
}
sendy.sendmail(payload, 1).then( (res) => {
console.log('res',(res));
}).catch( (err) => {
console.log('err',err);
})