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");
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",
});
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",
},
]);