0.1.9 • Published 2 years ago

@nurodev/mailersend.ts v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

🚀 Install

Install it locally in your project

npm i --save @nurodev/mailersend.ts

# Or with Yarn

yarn add @nurodev/mailersend.ts

🦄 Usage

Here are 2 basic examples of how to use the package using either the direct function handler or the client instance model:

import { sendEmail } from "@nurodev/mailersend.ts";

const result = await sendEmail("API_KEY", {
  from: {
    email: "elon@spacex.com",
    name: "Elon Musk",
  },
  to: [
    {
      email: "tim@apple.com",
      name: "Tim Apple",
    },
  ],
  subject: "The future of humanity...",
  html: "<h1>Hello World</h1>",
  text: "Hello World",
});
import { Client } from "@nurodev/mailersend.ts";

const client = new Client("API_KEY");

const result = await client.sendEmail({
  from: {
    email: "elon@spacex.com",
    name: "Elon Musk",
  },
  to: [
    {
      email: "tim@apple.com",
      name: "Tim Apple",
    },
  ],
  subject: "The future of humanity...",
  html: "<h1>Hello World</h1>",
  text: "Hello World",
});

📕 Documentation

To view the documentation on how to use each module, view the README.md for each module:

0.1.9

2 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago