seven

errors relating to the benefits of transport by email

Bugs in your application by email to be notified

NPM is available for download via a simple

npm install seven
var mo = require('seven')('appname');
 
  • config - string,object
  • list - array
  • theme - string,object
  • err - error
  • service - string
  • setting - object
seven.config("SMTP", {"service": "Gmail",
            "auth": {
                "user": "JohnDoe@gmail.com",
                "pass": "xxxxxx"
            }});
 
  • emails - array
seven.list(['johndoe@gmail.com','example@yahoo.com']);
 
  • dir - string
  • param object
seven.theme('/tema/template/herox/herox.html',
    param:{bla:"hegddf",stuff:"bla bla" }
 });
 
//herox.html
//basic email template
 
<h1>{{title}}</h1> // require params
 
{% for key in errors %}
    <p> {{key.stack}} </p> // require params
{% endfor %}
 
 
<small>Copyright {{stuff}}</small> // custom paramas..

Example template.. seven-template

  • err - error
 
function(){
    
    return new Promise(function (resolvereject) {
        seven.err(err)
    });
    
}
 

direction seven.json stuff

{
 "service":"SMTP",
 "setting":{
    "service": "Gmail",
    "auth": {
        "user": "JohnDoe@gmail.com",
        "pass": "xxxxxx"
    }
 },
 "list":["cobaimelan@yandex.com.tr","cobaimelan@gmail.com"],
 "theme":{
    "dir":"/tema/template/herox/herox.html",
    "param":{"bla":"stuff"}
 }
}
 

javascript your code stuff

seven.config().list().theme() //run code ^^ 
SEVEN=catch node test.js
DEBUG=* SEVEN=catch node test.js