gulp-sendgrid ![npm version](https://camo.githubusercontent.com/7679ffc7b28f2b4fe5d13e15c0564b393f55d0943b5dff2ba27ceb37e58810a0/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f67756c702d73656e64677269642e7376673f7374796c653d666c6174)
Create SendGrid templates and versions. Works great with Foundation Emails
$ npm install gulp-sendgrid
var gulp = require('gulp');
var sendgrid = require('gulp-sendgrid');
var config = {
apiKey: "YOUR-API-KEY"
}
gulp.task('default', function () {
return gulp.src(['src/**/*.html','!src/index.html'])
.pipe(sendgrid(config))
.pipe(gulp.dest('dist'));
});
Type: String
Default: ''
Required: yes
SendGrid API Key. It should be about 69 characters long. It is NOT your "API Key ID". SendGrid only shows the full API Key once, so if you don't know it, you'll need to create another one.
Type: String
Default: ''
Required: no
If you want to prefix your versions coming from this plugin. The final version name would end up version-prefix-file-name
- Make sure you've included your SendGrid API Key — it should be about 69 characters long. It is NOT your "API Key ID" (you'll need to create a new "General" API token if all you see is "API Key ID").
- Make sure you've set the API Key to have "Full Access" to "Transactional Templates"
- Try white-listing your IP from the SendGrid admin
MIT © Kevin Kirchner