Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 565 Bytes

readme.md

File metadata and controls

26 lines (18 loc) · 565 Bytes

@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-2024