0.1.0 • Published 10 months ago
facteur-node v0.1.0
Facteur Node.js SDK
Send emails in your Node.js applications with Facteur.
Installation
npm install facteur-node
Usage
import Facteur from 'facteur-node';
async function sendSomeEmail() {
const facteur = new Facteur('facteur-...');
await facteur.sendEmail({
from = 'no-reply@example.com',
to = 'ayn@rand.com',
subject = 'Who is John Galt?',
text = 'I started my life with a single absolute: that the world was mine to shape in the image of my highest values and never to be given up to a lesser standard, no matter how long or hard the struggle.',
html = '<p>I started my life with <b>a single absolute</b>: that the world was mine to shape in the image of my highest values and never to be given up to a lesser standard, no matter how long or hard the struggle.</p>',
});
}
sendSomeEmail();
0.1.0
10 months ago