UNPKG

xmail

Version:

A small library providing utility method to send email

18 lines (15 loc) 385 B
var should = require('chai').should(), mailer = require('../index'), sendmail = mailer.SendMail; describe('#SendMail', function() { it('Should Send Email to Recipient', function() { sendmail('dna.belmer@gmail.com','Test mail','xmail test','','','',function(err,data) { if(err) console.log(err); else console.log(data); }); }); });