Create a professional **Contact page** that perfectly matches the existing design, typography, colors, spacing, and overall style of my website.
Add a modern, responsive contact form with these fields:
* First Name
* Last Name
* Email Address
* Phone Number
* **How can I help you?**
* Build a website for me
* Create a tutorial for me
* I have a technical question
If **Build a website for me** or **Create a tutorial for me** is selected, dynamically show:
**What is your estimated budget?**
* $2,000–$10,000
* $10,000–$20,000
* $20,000–$50,000
* $50,000+
Then add:
* Message area
* Submit button
After successful submission, show a friendly confirmation message explaining that we have received the inquiry and will respond **within 48 hours, Monday through Friday**.
Improve all labels, options, button text, and confirmation copy so they sound professional, friendly, and natural.
Make the form fully functional and ready to send submissions to my email. I will provide the receiving email address, SMTP settings, username, password, and any other credentials required.
Also create a professionally designed HTML notification email for each submission that visually matches the branding and style of my website and clearly displays all submitted information.
Make sure the form includes proper validation, conditional fields, clear error/success states, spam protection, and works perfectly on desktop, tablet, and mobile.
How to create a working contact form using Claude
When you have a website, you want more business. But people can only become customers if they are able to reach you. That is why a contact form is one of the most important parts of any website. In this guide I show you how I let Claude build a contact page with a working form, in the same style as the rest of my website.
The result: a contact page that matches my design, a form with a question that only appears when it is needed, a friendly confirmation message, and a nicely designed email that lands in my own inbox every time someone fills in the form.
What you need
- A website you built with Claude, set up so changes are deployed to your domain automatically
- A web hosting account with email, I use Hostinger
- The prompt at the top of this page, or your own version of it
- A text editor to add your email password to a config file
The website in this example was made completely with Claude. If you want to learn how to build a site like that, start with my Claude website tutorial. In that tutorial I also show how to connect everything so that each change Claude makes is deployed to your live domain.
Step 1: Paste the contact form prompt into Claude
You can find the prompt at the top of this page. You can also find it in my prompts library by searching for “form”. In the prompt I ask Claude for a contact page with a contact form in the same style as my website, with fields for first name, last name, email address and phone number, plus a question about how I can help.
Feel free to adjust the fields and options to your own business. I made this prompt for my own site, so I did not change anything.
- Copy the prompt.
- Open Claude in the desktop app, in the project of your website.
- Paste the prompt and hit enter.
Claude now builds the page and the form. While it works, you can set up the email account that will receive the messages.
Step 2: Create an email account at Hostinger
If you do not have an email address on your own domain yet, you can create one in the Hostinger panel.
- In the Hostinger panel, go to Emails.
- Choose your domain and click Next.
- Choose the free business email and click Get started, then start the free trial.
- Type a name for the address, for example “info”, create a password and click Create mailbox.
- Open your inbox and send a test email to yourself to check that it works.
Back in the list of mailboxes, click your address and then Connect apps and devices. Under Advanced settings you find the server details, such as the SMTP server and port. You need these so your form can send email.
Step 3: Add your email password to the config file
When Claude is done, read what it tells you. In my case Claude created a file called contact.config.php with the mail settings, and said I only had to fill in the password and change the email address.
- Find the config file in the folder where you store your website.
- Open it in a text editor. I use Dreamweaver, but any text editor works.
- Check the email address, the server and the port against the details from Hostinger.
- Fill in the password of your email account and save the file.
- Go back to Claude and type something like: “I added my password. Please deploy.”
I add the password myself instead of pasting it into the chat. That way your password stays in a file on your own computer and server.
Step 4: Test the contact form
After the deploy, refresh your website. You should now see a contact page in the menu, in the same style as the rest of the site.
Test the conditional question. In my form, nothing extra appears when someone chooses “I have a technical question”. But when someone chooses “Build a website for me” or “Create a tutorial for me”, a budget question appears. That keeps the form short for people who only have a quick question.
Fill in the form and send it. You should see the confirmation message, in my case saying that you will get a reply within 48 hours, Monday through Friday. Then open the webmail of your mailbox. The message arrives as an email in the style of your website, showing the name, email address, phone number, estimated budget and message. You can reply directly from your inbox.
Tips for a better contact form
- Only ask for what you really need. Conditional fields help you get more details from serious leads without scaring others away.
- Always send a test message after every change, and check that it actually arrives in your inbox.
- Make sure the email address in the config file is on the same domain as your website.
- Before you launch, go through my launch checklist prompt, and add a privacy policy with the legal pages prompt, because your form collects personal data.
Frequently asked questions
Can Claude build a contact form that really sends emails?
Yes. Claude builds the form and the code that sends the submissions through the SMTP settings of your email account. You only need to add your own email details and password.
Do I need a business email address for this?
You need an email account with SMTP access. In this example I create one at Hostinger on my own domain, which also looks more professional to your visitors.
Can I change the fields in the form?
Yes. Edit the prompt before you paste it. Add or remove fields, change the options, or change the confirmation message so it fits your business.
Where do I find the SMTP settings?
In the Hostinger panel, open your mailbox, click Connect apps and devices and look under Advanced settings.


