Inbound provides two primary capabilities: sending and receiving emails programmatically.
Sending Emails
You can send emails using the SDK or the API. The SDK is designed to be highly compatible with the Resend SDK, making migrations straightforward.
Receiving Emails
You can receive emails via endpoints. You have two main strategies for routing incoming mail:
- Specific Endpoints: Attach unique endpoints to individual email addresses (e.g.,
support@yourdomain.com). - Catch-all Endpoints: Set up a catch-all for a domain so that any email not matching a specific address is routed to a fallback endpoint.
Conceptual Routing Example:
switch (email) {
case 'support@yourdomain.com':
endpoint1 // Specific endpoint for support
case 'sales@yourdomain.com':
endpoint2 // Specific endpoint for sales
default: // catch-all
endpoint3 // Fallback endpoint for all other emails
}