Spam check your emails using Postmark's API
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-spamcheck --save-dev
After the plugin is installed, it can be enabled in your Gruntfile:
grunt.loadNpmTasks('grunt-spamcheck');
Run this task with the grunt spamcheck
command.
Specifies whether you would like more detailed reporting.
Type: String
Default: long
Options: short
, long
Specifies whether you want to hide the score graph.
Type: Boolean
Default: false
grunt.initConfig({
spamcheck: {
emails: {
report: 'long',
src: ['emails/template1.html', 'emails/template2.html', 'emails/template3.html']
}
}
});
Run this task with the grunt test
command.