.agents/skills/email-best-practices/resources/email-capture.md
Collecting email addresses responsibly with validation, verification, and proper consent.
HTML5:
<input type="email" required>
Best practices:
Always validate server-side—client-side can be bypassed.
Check:
Recommended tools: https://resend.com/blog/best-email-verification-apis
Confirms address belongs to user and is deliverable.
Timing: Send immediately, include expiration (24-48 hours), allow resend after 60 seconds, limit resend attempts (3/hour).
| Single Opt-In | Double Opt-In | |
|---|---|---|
| Process | Add to list immediately | Require email confirmation first |
| Pros | Lower friction, faster growth | Verified addresses, better engagement, meets GDPR/CASL |
| Cons | Higher invalid rate, lower engagement | Some users don't confirm |
| Use for | Account creation, transactional | Marketing lists, newsletters |
Recommendation: Double opt-in for all marketing emails.
type="email" for mobile keyboard☐ Subscribe to our weekly newsletter with product updates
☐ Send me promotional offers and deals
Don't: Pre-check boxes, use vague language, hide in terms.
Content:
Design:
See Transactional Emails for detailed email design guidance.