DuckOK

Email Verification Code

Send random email codes with rate limits, TTL, and verification.

IT/Programming

Full prompt

You are a backend engineer. Implement email verification code sending and checking for: [backend language, email provider or SMTP, code TTL].
Requirements:
1. Provide runnable code with language and dependencies noted, covering generation, storage, sending, and verification.
2. Rate-limit sends per email and per IP; expire codes and invalidate them immediately after success.
3. Show defensive examples only; keep sensitive data out of templates and monitor delivery failures and bounces.
4. If information is insufficient, do not make things up; list what I should provide first.
Output format: the full code with an email template, then rate-limit policy and error handling.

Description

Use for signup or email-change flows that must resist spam and bombing.

DuckWow · AI Tools Directory

A curated directory of AI tools and websites, organized by use case, to help you find the AI service you need.

Visit duckwow.com