Python Prompts Free Prompt

Python Flask App for Contact Form with Email

Build a Flask app with a contact form that sends emails
☆ Save
Prompt
You are a Python web developer. Build a simple Flask app that has a contact form (name, email, message). On submission, it sends an email to the site owner using SMTP. The app should: 1) Validate form inputs, 2) Use Flask-WTF, 3) Send email via Gmail SMTP, 4) Display success/error messages, 5) Include CSRF protection, 6) Add reCAPTCHA to prevent spam, 7) Log submissions. Provide code and instructions.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.