Adding a Contact Form
While a contact form is a simple concept, it can be a bit complex to get set up and operating. We suggest that you read this whole page before diving in and doing it the first time. Don't give up; it really does work.
Set Up
The easiest way to add a contact form to a basic Drupal site is to enable the contact module. Go to Administer >> Site building >> Modules and locate it in the list of core modules. Click the check box and go to the bottom to save the change.
Go to Administer >> Site building >> Contact form. Here you can set up the "Categories" - or recipient name/office.
For example, email for the Sales Department might be given a category of "Sales." The email address that the form is sent to may be sales@mycompany.com. If you want a reply automatically sent to the person sending the contact email, you can specify that here. Don't worry if you don't know them all right away, you can come back and change this at any time. Click the "Submit button."
Now click on the "Settings" tab. Here you can limit how many contact emails an individual may send in an hour -- this helps limit spamming. You may also turn on personal contact forms here; this allows users to contact each other. Click on the "Save configuration" button.
Make It Accessible
In order to allow people to use this contact form, you will need to give them permissions to do so.
Go to Administer >> User management >> Access control (in D6 Administer >> User management >> Permissions), locate the "Contact module" entry and enable it for the roles you want to be able to use Contact. Save your changes. The menu link (next step) will not be visible to any one not having access.
Add "Contact" to the Menu
Go to Administer >> Site building >> Menus. You can add a 'Contact' menu item as described in the Working with Menus section.
Using It In Content
To add a link to a content page use <a href="/contact">Contact Us</a>.
Need a customized contact form? Check the WebForm, Contact Forms or CCK modules.
Contact Form Spam
If you find you're getting spam emails through your contact form, check out the Gotcha module or use the Captcha module.
