Skip to content

Instantly share code, notes, and snippets.

@geomagilles
Created February 9, 2018 23:30
Show Gist options
  • Save geomagilles/8dec7425ad7b05db3a9b9d8905af495f to your computer and use it in GitHub Desktop.
Save geomagilles/8dec7425ad7b05db3a9b9d8905af495f 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", function() {
new SendMyBeautfulEmail1(this.email).execute();
new Wait().days(3).execute();
new SendMyBeautfulEmail2(this.email).execute()
new Wait().days(3).execute();
new SendMyBeautfulEmail3(this.email).execute();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment