node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

@runnerty/executor-mail

Mail executor for Runnerty:

Configuration samples:

{
  "id": "mail_default",
  "type": "@runnerty-executor-mail",
  "disable": false,
  "from": "Runnerty Notificator <sample@runnerty.io>",
  "transport": "smtp://my%mailsender.com:pass@smtp.host.com/?pool=true",
  "bcc":["mycc@mail.com"],
  "templateDir": "/etc/runnerty/templates",
  "template": "alerts",
  "ejsRender": true
}
{
  "id": "mail_aws_ses",
  "type": "@runnerty-executor-mail",
  "disable": false,
  "from": "Runnerty <hello@runnerty.io>",
  "transport": {
      "host": "email-smtp.eu-west-1.amazonaws.com",
      "port": 465,
      "secure": true,
      "auth": {
          "user": "aws_ses_user",
          "pass": "aws_ses_pass"
      }
  },
  "templateDir": "/etc/runnerty/templates",
  "template": "alerts",
  "ejsRender": true
}

Plan sample:

{ "id":"mail_default",  
  "to": ["my@mail.com"],
  "title": "Runnerty Mailer",
  "message": "My message from Runnerty!",
  "attachments": [{
    "filename": "sample.png",
    "path": "/etc/runnerty/templates/alerts/images/sample.png",
    "cid": "img_name@sample.png"
   }]
}

EJS Template sample:

Plan:

{ "id":"mail_default",  
  "to": ["my@mail.com"],
  "title": "Runnerty Mailer",
  "message": "My message from Runnerty!",
  "args": {"value_one":"Hello", "value_two":"world!", "value_three":":YYYY"}
}

HTML Template:

<html>
  <head>
  <title><%= args.value_one %> <%= args.value_two %></title>
  </head>
  <body>
  <%= args.value_three %>
  </body>
</html>

Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing.