1.0.0 • Published 5 years ago

nor-mailer v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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.

1.0.0

5 years ago

0.1.20

9 years ago

0.1.19

9 years ago

0.1.18

9 years ago

0.1.17

9 years ago

0.1.16

9 years ago

0.1.15

9 years ago

0.1.14

9 years ago

0.1.13

9 years ago

0.1.12

9 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

11 years ago