GithubHelp home page GithubHelp logo

christiaanscheermeijer / mailchimp-releasemail Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 23 KB

Send automated release mails with Conventional Changelog via MailChimp.

JavaScript 79.91% HTML 20.09%
release mailchimp conventional-changelog

mailchimp-releasemail's Introduction

mailchimp-releasemail

Send automated release mails with Conventional Changelog via MailChimp.

Prerequisites

CLI

If you want to use the CLI, you can install this package globally:

$ npm install mailchimp-releasemail -g

This will install the release-mail binary.

When using the CLI, it will automatically look for an .releasemailrc file in the current working directory. Your can change this by using the --config flag.

.releasemailrc

The .releasemailrc file is a JavaScript file which will be required by the releasemail script. Below an example:

var pkg = require('./package.json');

module.exports = {
  apiKey:      process.env.MC_API_KEY,
  subject:     'Software release v' + pkg.version + ' ๐Ÿš€',
  previewText: 'See all new features and bug fixes',
  listId:      '<mailchimp list id>',
  fromName:    'Your name',
  replyTo:     '[email protected]',
  templateId:  11223344,
  sections:    {
    version: 'v' + pkg.version,
  },
};

Node

It is also possible to send release mails from your node script.

$ npm install mailchimp-releasemail

Now you can use it like so:

var releasemail = require('mailchimp-releasemail');
var pkg = require('./package.json');

releasemail({
  apiKey:      process.env.MC_API_KEY,
  subject:     'Software release v' + pkg.version + ' ๐Ÿš€',
  previewText: 'See all new features and bug fixes',
  listId:      '<mailchimp list id>',
  fromName:    'Your name',
  replyTo:     '[email protected]',
  templateId:  11223344,
  sections:    {
    version: 'v' + pkg.version,
  },
}).then(function() {
  // success :-D
}).catch(function() {
  // error :-(
});

mailchimp-releasemail's People

Contributors

christiaanscheermeijer avatar

Watchers

 avatar  avatar

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.