Skip to content

feat(examples): add Mailtrap example - #3709

Merged
gabrielmfern merged 2 commits into
resend:canaryfrom
mmaxence:example-mailtrap
Aug 25, 2026
Merged

feat(examples): add Mailtrap example#3709
gabrielmfern merged 2 commits into
resend:canaryfrom
mmaxence:example-mailtrap

Conversation

@mmaxence

@mmaxence mmaxence commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Adds a Mailtrap example under examples/, following the same shape as the existing Brevo (#3704) and Plunk examples. It renders the email with react-email and sends it through the official mailtrap SDK's send() method. I checked the payload against the SDK's TypeScript types (mailtrap@4.9.0); it typechecks clean and builds with tsdown.


Summary by cubic

Adds a Mailtrap example under examples/mailtrap that renders an email with react-email and sends it using the official mailtrap SDK. It’s a minimal reference integration and does not modify production code.

  • New example package react-email-with-mailtrap builds with tsdown (ESM, Node 20) and typechecks against mailtrap@4.9.0.
  • Requires MAILTRAP_TOKEN; the example uses MailtrapClient.send() with HTML rendered via react-email.
  • Updates pnpm-lock.yaml for the new example dependencies and applies linting; no behavior changes.

Written for commit ba81b89. Summary will update on new commits.

Review in cubic

@vercel

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

@mmaxence is attempting to deploy a commit to the resend Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ba81b89

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedmailtrap@​4.9.09910010093100

View full report

@github-actions github-actions Bot added the linear-synced PR has been synced to Linear label Aug 18, 2026

@gabrielmfern gabrielmfern left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Signed-off-by: Gabriel Miranda <gabriel@resend.com>
@gabrielmfern
gabrielmfern merged commit 3bae4a2 into resend:canary Aug 25, 2026
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linear-synced PR has been synced to Linear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants