
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
@contract-kit/provider-mail-resend
Advanced tools
Resend mail provider for contract-kit - adds mailer port using Resend
Resend-backed mail provider for Contract Kit.
The provider installs the app-facing ctx.ports.mailer port and exposes
ctx.ports.resend.client only as an escape hatch for Resend-specific features.
bun add @contract-kit/provider-mail-resend resend
import { mailResendProvider } from "@contract-kit/provider-mail-resend";
import { createServer } from "@contract-kit/server";
const server = await createServer({
ports: basePorts,
providers: [mailResendProvider],
createContext: ({ ports }) => ({ ports }),
routes,
});
Required environment variables:
| Variable | Description |
|---|---|
RESEND_API_KEY | Resend API key |
RESEND_FROM | Default sender, e.g. My App <no-reply@example.com> |
await ctx.ports.mailer.send({
to: "user@example.com",
subject: "Welcome",
html: "<h1>Hello</h1>",
});
The same MailerPort works with SMTP, memory fakes, and other adapters:
await ctx.ports.mailer.send({
from: { email: "support@example.com", name: "Support" },
to: ["user@example.com", "admin@example.com"],
replyTo: "support@example.com",
subject: "Account updated",
text: "Your account was updated.",
html: "<p>Your account was updated.</p>",
});
Use the Resend client only when you need a Resend-specific feature not covered
by MailerPort:
await ctx.ports.resend.client.emails.send({
from: "sender@example.com",
to: "user@example.com",
subject: "Invoice",
html: "<p>Attached.</p>",
attachments: [
{
filename: "invoice.pdf",
content: pdfBuffer,
},
],
});
When ctx.ports.devtools is installed, this provider records mail.send,
mail.sent, and mail.failed events under the mail watcher.
Delivery failures throw MailDeliveryError from @contract-kit/mail.
Startup configuration problems throw during provider setup.
MIT
FAQs
Resend mail provider for contract-kit - adds mailer port using Resend
We found that @contract-kit/provider-mail-resend demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain