Connect Resend
- Create a free account at resend.com.
- Add and verify your sending domain. Resend gives you the DNS records to add.
- Create an API key.
- Fill in the three email lines in .env.local, and add the same values in your hosting settings for production.
RESEND_API_KEY=re_your_key
CONTACT_TO_EMAIL=you@yourbusiness.com
CONTACT_FROM_EMAIL=Website <leads@yourbusiness.com>What protects it
- Every field is checked on the server, so nothing gets through by turning off JavaScript
- A hidden honeypot field catches most spam bots
- Each visitor can send five messages every ten minutes
- If a field needs fixing, everything the visitor typed stays in place
Without a key
If Resend is not set up yet, the form shows your phone and email instead of failing silently, so no lead is ever lost.