JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q59331F
  • License MIT

Asynchronous HTML email sending with Markdown formating

Package Exports

  • nor-mailer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nor-mailer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

nor-mailer

Asynchronous HTML email sending with Markdown formating.

Warning! This library is in an early development state and the API might change any time.

We are using:

mailer.send(opts)

Sends HTML formated email with markdown text alternative.

var smtp_config = {
    "host": "smtp.example.com",
    "port": 465,
    "secureConnection": true,
    "auth": {
        "user": "app",
           "pass": "12345678"
    }
};

var mailer = require('nor-mailer')({"smtp": smtp_config});

var body = 'The subject of the message\n'+
    '--------------------------\n'+
    '\n'+
    'This is a *sample* email made with Markdown.\n'+
    '\n'+
    '| Tables | Are | Cool |\n'+
    '| ------ | --- | ---- |\n'+
    '| col 3 is      | right-aligned | $1600 |\n'+
    '| col 2 is      | centered      |   $12 |\n'+
    '| zebra stripes | are neat      |    $1 |\n';

mailer.send({
    from:'app@example.com', 
    to:'jhh@example.com',
    subject:'Example message',
    body: body
}).close().then(function() {
    console.log('Email sent successfully.');
}).fail(function(err) {
    console.error('Error: ' + err);
}).done();

Commercial Support

You can buy commercial support from Sendanor.