gulp-mailgun
Send emails though mailgun as part of your build
Last updated 5 years ago by davidturner .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-mailgun 
SYNC missed versions from official npm registry.

gulp-mailgun

This is my first attempt at writing a gulp plugin, so there is still probably quite a lot to do here. As such, be prepared for hinkiness, issues, and for things to break in expected, and unexpected, manners.

Things that I know that I need to figure out:

  • Testing

Basic Implemenation

Include the plugin in your project:

sendmail = require('gulp-mailgun');

Usage would be similar to this:

gulp.task('sendmail', function () {
  gulp.src( '*/*.html') // Modify this to select the HTML file(s)
  .pipe(sendmail({
    key: 'enter-your-api-key-here', // Enter your Mailgun API key here
    sender: 'from@test.com',
    recipient: 'to@test.com',
    subject: 'This is a test email'
  }));
});

Feedback

Long story short with this, things will likely break, or not be as reliable as you would expect from other packages you've used. Whilst I've been using gulp.js for quite some time, this is my first time writing a package. If you run into anything problematic, or see a way by which to improve things, please get in touch here or on twitter and I'll do my best to help.

Credit

After having seen Lee Munroe's grunt-based process for HTML email development. I'm a gulp.js user, and wanted to get something similar going that fitted with my workflow. After a tweet from Lee last night I decided to see what I could come up with.

Long story short, I ripped apart quite a few of the grunt-based packages Lee's workflow made use of, and got something working, which you see before you.

Current Tags

  • 0.0.7                                ...           latest (5 years ago)

7 Versions

  • 0.0.7                                ...           5 years ago
  • 0.0.6                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |