2.0.0 • Published 2 years ago

@collapp/email-sdk v2.0.0

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

Some basic usage!

npm i @collapp/email-sdk

Example login email

import { Login } from "@collapp/email-sdk";

async function fun() {
  const mail = new Login(process.env.RABBIT_URL);
  await mail.send({
    to: "yourEmail@example.com",
    subject: "Welcome to Collapp!",
    secret: process.env.SECRET,
    // Context data to fill email template
    context: {
      email: "yourEmail@example.com",
      url: "https://github.com/collapp-zpi/email-sdk",
    },
  });
  mail.disconnect();
}
fun();
2.0.0

2 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago