Skip to content

Commit

Permalink
Added DKIM example
Browse files Browse the repository at this point in the history
  • Loading branch information
download13 committed Dec 5, 2016
1 parent 6efaa1f commit 8e4f235
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions examples/dkim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var fs = require('fs');
var sendmail = require('../sendmail')({
silent:true,
dkim: {
privateKey: fs.readFileSync('dkim-private.pem', 'utf-8'),
keySelector: 'mydomainkey'
}
});

sendmail({
from: '[email protected]',
to: '[email protected]',
replyTo: '[email protected]',
subject: 'MailComposer sendmail',
html: 'Mail of test sendmail ',
}, function(err, reply) {
console.log(err && err.stack);
console.dir(reply);
});

0 comments on commit 8e4f235

Please sign in to comment.