I2. The Contact Form

For something as simple as a contact form, this is one of the most complicated things to get set up and operating.

Set Up

First, the contact module must be enabled. 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. [Don't confuse this with taxonomy categories.]

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

To me this step seems totally unnecessary, but I suppose that some people want it.

Go to Administer >> User management >> Access control, 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. Under "Navigation," enable "Contact" as described in the instructions. Save your changes.

Using It In Content

To add a link to a content page use <a href="/contact">Contact Us</a>. Unfortunately, this does not give you the capability to specify which contact to send it to. Fortunately, there is help! Check out the Contact Forms module (more about it here).

Need a customized contact form? Check the WebForm or CCK modules. A recent change to the Contact_Forms module allows you to use it together with one of these two modules.

Contact Form Spam

If you find you're getting spam emails through your contact form, check out the Gotcha module.

 

Thanks

kevinkpierce - January 4, 2008 - 04:29

Very helpful. And I've only looked at the contact module.

 
 

Drupal is a registered trademark of Dries Buytaert.