Task prompt · Websites & Apps
Add a contact form that actually sends email
by Agent Yard TeamWire a working contact form to a serverless function, with spam protection.
Use cases
- Wire a working contact form to a serverless function, with spam protection.
- Reuse it as often as you like: fill in the blanks (framework or plain html; host, e.g. vercel or netlify; my email) with new details and copy again.
- As one step of the Website for a local business prompt pack.
Featured in: Best ChatGPT prompts for email writing, Best Claude prompts for email writing.
How to use it
- Open Cursor or Claude Code in your terminal (or another AI listed here).
- Fill in the highlighted blanks ([FRAMEWORK OR PLAIN HTML], [HOST, E.G. VERCEL OR NETLIFY], [MY EMAIL]…) below, or edit them after pasting.
- Copy the prompt, paste it into the chat and send.
Fill in the blanks (optional)
Prompt
Add a working contact form to my [FRAMEWORK OR PLAIN HTML] site hosted on [HOST, E.G. VERCEL OR NETLIFY]. - Fields: name, email, message. Client-side validation and accessible error messages. - A serverless function that sends the message to [MY EMAIL] using [EMAIL SERVICE, E.G. RESEND]. - Spam protection with a honeypot field and basic rate limiting. - Clear success and error states. Explain which environment variables to set and never hardcode secrets.
One email a week
The Weekly is presented byyour brandSponsored · openThe best new prompts and personas, nothing else.