Overview
Resend is a modern email API designed for developers. It provides a simple, reliable way to send transactional and marketing emails from your Superun applications. With Resend, you can send emails with just a few lines of code.What is Resend
Resend offers a developer-friendly email service with:- Simple API: Clean, RESTful API that’s easy to integrate
- High Deliverability: Optimized for inbox placement
- React Email: Built-in support for React-based email templates
- Webhooks: Real-time delivery and engagement tracking
- Analytics: Detailed email performance metrics
- Templates: Pre-built email templates for common use cases
Key Benefits
- Developer Experience: Designed by developers, for developers
- High Deliverability: Better inbox placement than traditional SMTP
- React Integration: Native support for React email components
- Real-time Tracking: Webhooks for delivery and engagement events
- Scalable: Handles high-volume email sending
- Affordable: Competitive pricing with generous free tier
Getting Started
1. Create a Resend Account
- Go to resend.com and sign up
- Verify your email address
- Complete the account setup process
2. Get Your API Key
- Go to API Keys in your Resend dashboard
- Click Create API Key
- Give it a name (e.g., “Superun App”)
- Copy the API key (starts with
re_) - Keep it secure and never expose it in client-side code
3. Configure Resend in Superun
In your Superun project:- Go to Settings → Integrations
- Find Resend and click Connect
- Enter your API Key
- Click Save
Basic Email Sending
Install Resend SDK
Superun automatically includes the Resend SDK, but you can also install it manually:Send a Simple Email
Send HTML Email
React Email Integration
Install React Email
Create Email Templates
Send React Email
Email Templates
Password Reset Email
Notification Email
Advanced Features
Send to Multiple Recipients
Send with Attachments
Send with Custom Headers
Webhooks
Setting Up Webhooks
- Go to Webhooks in your Resend dashboard
- Click Add Webhook
- Enter your webhook URL (e.g.,
https://yourapp.com/api/webhooks/resend) - Select the events you want to listen for
- Copy the webhook secret
Processing Webhooks
Email Analytics
Track Email Opens
Track Email Clicks
Common Use Cases
User Registration
Password Reset
Order Confirmation
Newsletter
Best Practices
Email Design
- Mobile-First: Design for mobile devices first
- Consistent Branding: Use your brand colors and fonts
- Clear CTAs: Make call-to-action buttons prominent
- Readable Text: Use sufficient contrast and font sizes
- Test Across Clients: Test in different email clients
Performance
- Optimize Images: Compress images and use appropriate formats
- Minimize HTML: Keep email HTML clean and minimal
- Use Web Fonts Carefully: Fallback fonts for better compatibility
- Test Loading Speed: Ensure emails load quickly
Deliverability
- Authenticate Your Domain: Set up SPF, DKIM, and DMARC
- Maintain Good Reputation: Avoid spam triggers
- Use Double Opt-in: Confirm email addresses before sending
- Provide Unsubscribe: Always include unsubscribe links
Troubleshooting
Common Issues
Q: Emails are not being delivered A: Check:- API key is correct and active
- Sender email is verified
- Domain authentication is set up
- Email content doesn’t trigger spam filters
- Webhook URL is accessible from the internet
- Webhook endpoint returns 200 status
- Webhook secret is correct
- Events are properly selected
- @react-email/components is installed
- Email template is properly exported
- render() function is used correctly
- HTML structure is valid
- Setting up domain authentication
- Using a verified sender address
- Avoiding spam trigger words
- Maintaining good sender reputation
Need Help?
Check our FAQ for common Resend integration questions and troubleshooting tips.

