Sending emails
Send transactional emails through the API or SDKs.
Send a one-off transactional email to a single recipient.
typescript
await plunk.emails.send({
to: "user@example.com",
subject: "Your invoice is ready",
body: "<p>Hi, your invoice for June is attached.</p>",
});Sending to multiple recipients
typescript
await plunk.emails.send({
to: ["a@example.com", "b@example.com"],
subject: "Scheduled maintenance",
body: "We'll be down for 10 minutes on Friday at 3pm UTC.",
});From name and reply-to
typescript
await plunk.emails.send({
to: "user@example.com",
subject: "Welcome",
body: "<p>Glad to have you.</p>",
name: "Acme Support",
replyTo: "support@acme.com",
});