ErrorMail
DocsPricing
React Error Handling

Errors happen.
Get notified.

Wrap your React components and functions. When errors occur, we'll send you an email. That's it.

Configuration
import { configureErrorReporting } from 'errormail';

configureErrorReporting({
  apiKey: 'your-api-key',
  emailTo: 'admin@example.com'
})
Component Wrapper
import { ErrorBoundary } from 'errormail';

<ErrorBoundary emailTo="you@example.com">
  <MyComponent />
</ErrorBoundary>
Email Preview

See what you'll receive

Every error is automatically formatted into a beautiful, detailed email report

bun install errormail
mail.example.com • Error Report
ErrorMail
Error Report
Error

Error Detected

12/16/2025, 1:18:39 PM

Error Message
Failed to fetch user data
Error Type
TypeError
Function
fetchUserData
Breadcrumbs (3)
User clicked checkout buttonui
1:18:09 PM
Navigate to /checkoutnavigation
1:18:14 PM
GET /api/carthttp
1:18:19 PM
Environment
BrowserChrome 120
OSmacOS
URLexample.com/checkout
Stack Trace
TypeError: Failed to fetch
at fetchUserData (app.js:45)
at handleCheckout (checkout.js:12)

This error was automatically reported by ErrorMail

Wrap Functions

Wrap any async or sync function. Errors are caught and emailed automatically.

Email Reports

Get detailed error reports in your inbox with stack traces and context.

Breadcrumbs

Track user actions leading up to errors for better debugging context.

Severity Levels

Categorize errors as debug, info, warning, error, or fatal.

Environment Info

Automatic browser, device, and runtime information capture.

Rate Limiting

Prevent duplicate error flooding with automatic deduplication.