Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Latest commit

 

History

History

email

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Email

Bulk Email Status

Official Documentation


import { Client } from "@nuro.dev/mailersend.ts";
const client = new Client("API_KEY");
const result = await client.bulkEmailStatus("BULK_EMAIL_ID");
import { bulkEmailStatus } from "@nuro.dev/mailersend.ts";
const result = await bulkEmailStatus("API_KEY", "BULK_EMAIL_ID");

Send Email

Official Documentation


import { Client } from "@nuro.dev/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",
});
import { sendEmail } from "@nuro.dev/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",
});

Send Bulk Emails

Official Documentation


import { Client } from "@nuro.dev/mailersend.ts";

const client = new Client("API_KEY");

const result = await client.sendBulkEmails([
  {
    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 { sendBulkEmails } from "@nuro.dev/mailersend.ts";

const result = await sendBulkEmails("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",
  },
]);