Skip to content
المشاريع

حول

Resend examples

التعلّم والتعليم

كيف تُقاس هذه الأرقام

204 نجمة35 التفرعات +1 خلال 24 ساعة

النمو المقاس للنجوم

خلال 24 ساعة
+١
خلال 7 أيام
+٢
خلال 15 يومًا
+٢
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Resend Examples

Comprehensive examples for sending emails with Resend across multiple languages and frameworks.

Quick Start

Choose your language/framework and follow the setup instructions in each folder:

Language Folder Framework
Next.js (TypeScript) /nextjs-resend-examples/typescript Next.js 16, React 19
Next.js (JavaScript) /nextjs-resend-examples/javascript Next.js 16, React 19
PHP /php-resend-examples Slim, Symfony
Laravel /laravel-resend-examples Laravel 11
Python /python-resend-examples Flask, FastAPI, Django
Ruby /ruby-resend-examples Sinatra, Rails
Go /go-resend-examples Chi, Gin
Java /java-resend-examples Javalin, Spring Boot
.NET (C#) /dotnet-resend-examples ASP.NET Minimal APIs, ASP.NET MVC
Rust /rust-resend-examples Axum
Elixir /elixir-resend-examples Phoenix
Express /express-resend-examples Express 5
Hono /hono-resend-examples Hono
Bun /bun-resend-examples Bun.serve()
Remix /remix-resend-examples Remix
Nuxt /nuxt-resend-examples Nuxt 3
SvelteKit /sveltekit-resend-examples SvelteKit
Astro /astro-resend-examples Astro
RedwoodJS /redwoodjs-resend-examples RedwoodJS
TanStack Start /tanstack-resend-examples TanStack Start
e2e /e2e-resend-examples/typescript End to end testing with Next.js and e2e

Examples Included

Each language folder includes examples for:

Sending Emails

  • Basic Send - Simple HTML email
  • With Attachments - File attachments (URL or base64)
  • With CID Attachments - Inline/embedded images
  • With Templates - Resend hosted templates
  • With React Email - React component templates (Next.js only)
  • Scheduled Send - Future delivery scheduling

Forms & Server Actions

  • Contact Form - Batch send with confirmation + notification

Receiving Emails

  • Inbound Webhooks - Receive and forward emails
  • Webhook Verification - Signature validation

Management

  • Audiences - Contacts and segments
  • Domains - Create and verify domains

Advanced

  • Authentication - Email verification with better-auth
  • Prevent Threading - Stop Gmail conversation grouping

The e2e tests only have one example that shows how to test email verification with real email addresses.

Getting Started

  1. Get your API key from resend.com/api-keys

  2. Clone this repository:

    git clone https://github.com/resend/resend-examples.git
    
  3. Choose your language and follow the README in that folder

  4. Configure your environment with your API key

  5. Run the examples and explore!

Resources

Contributing

See something that could be improved? We welcome contributions! Open an issue to report a bug or suggest an improvement, or submit a pull request with your changes.

License

MIT

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…