Skip to content
send-client / 1.0.1-master-719b906c4dac6e580c443b632a6f988ce10f1db2.0

send-client 1.0.1-master-719b906c4dac6e580c443b632a6f988ce10f1db2.0

Install from the command line:
Learn more about npm packages
$ npm install @node-mail-broadcast/send-client@1.0.1-master-719b906c4dac6e580c443b632a6f988ce10f1db2.0
Install via package.json:
"@node-mail-broadcast/send-client": "1.0.1-master-719b906c4dac6e580c443b632a6f988ce10f1db2.0"

About this version

@node-mail-broadcast/send-client

  • NodeJS endpoint for sending emails with this framework

(more coming soon^TM)

Example Usage

import {EmailSenderClient} from "./index";

const emailClient = new EmailSenderClient(["amqp://url-to-broker"], "emails", false);
emailClient.connect().then(console.log, console.log);

//to send an email
emailClient.sendEmail({
    templateName: "some-name-from-database",
    content: {
        placeholder1: "value1",
        placeholder2: "value2"
    }
}).then(console.log, console.log)

© 2022