jusend
v1.0.2
Published
Implementation of email sending
Maintainers
Readme
Jusend Node JS
Complete documentation
This library is an implementation made in javascript of the Email Service API
Install
Npm:
npm install --save jusendYarn:
yarn add jusendGetting started
Authenticate with your Api Key
Make sure you have created your free account on jusend and that you have your Credentials.
// CommonJS
const Jusend = require("jusend");
// ES6 / Typescript
import Jusend from "jusend";
const jusend = new Jusend({
apiKey: "YOUR_API_KEY",
});Emails
send email
jusend.emails
.send({
from: "Example <[email protected]>",
to: "[email protected]",
subject: "hello world",
html: "<p>it works!</p>",
})
.then((response) => {})
.catch((error) => console.log(error)); // Handle the error.Publish
npm publish