Skip to content

Instantly share code, notes, and snippets.

@geomagilles
Created February 10, 2018 00:15
Show Gist options
  • Save geomagilles/10f7d1963f348e09fade05b7cd05f8dd to your computer and use it in GitHub Desktop.
Save geomagilles/10f7d1963f348e09fade05b7cd05f8dd to your computer and use it in GitHub Desktop.
var { Workflow, Wait } = require("zenaton");
var SendMyBeautfulEmail1 = require("./SendMyBeautfulEmail1");
var SendMyBeautfulEmail2 = require("./SendMyBeautfulEmail2");
var SendMyBeautfulEmail3 = require("./SendMyBeautfulEmail3");
module.exports = Workflow("WelcomeEmailSerie_v1", function() {
new SendMyBeautfulEmail1(this.email).execute();
new Wait().monday().at('08:00').execute();
new SendMyBeautfulEmail2(this.email).execute()
new Wait().monday().at('08:00').execute();
new SendMyBeautfulEmail3(this.email).execute();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment