Coder Social home page Coder Social logo

gulp-mailgun's Introduction

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: '[email protected]',
    recipient: '[email protected]',
    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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.