import { NodeMailgun } from 'ts-mailgun';
export const mgmailer = new NodeMailgun();
mgmailer.apiKey = 'key-YOURAPIKEYHERE';
mgmailer.domain = 'mg.example.co';
mgmailer.fromEmail = 'j@example.co';
mgmailer.fromTitle = "Fancy Company";
mgmailer.init();

mgmailer.send('j@example.co', 'reset pass',  'reset-password?token=$').then((result) => {
console.log("Done ", result )
}).catch((error) => {
console.log('Error:', error)
})


