2.0.0 • Published 4 years ago

@collapp/email-sdk v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 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

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago