Adding a Drupal Site Contact Form
An important addition to most websites, especially ones offering products or services, is a contact form. This would allow your Drupal site visitors to ask for more information without having to locate an e-mail address on your site and send you a message.
Contact forms can also be constructed to allow certain types of messages to be sent to specific people on your staff. The contact form has a Category drop-down list that allows visitors to select from a list of topics.
For example, if you have a storefront and an employee in charge of shipping, you can create a contact form that, when submitted, sends the contents directly to the right person on your staff. The same contact form can be sent to your website administrator.
To create a contact form, follow these steps:
Click Modules on the Dashboard menu bar.
Select the Contact check box.
Click Save Configuration.
Choose Structure→Contact Form.
Click the Add Category tab.
This opens the Contact Form overlay.
For category, enter a subject that you think someone would like to contact you about.
For example, enter Product Information. You'll have the chance to enter more categories later.
In the Recipients text box, enter the e-mail addresses, separated by commas, of everyone you want to receive the results of this form when a user submits it.
If you want users to be sent a message after they submit the form, fill in the Auto-Reply text box.
If you think the category you entered in the Category text box is the most common one users will choose, select Yes in the Selected drop-down list.
You return to the Contact Form list page.
To add more categories or subjects to your contact form, repeat Steps 1 through 10.
You now have a contact form.
To view yours, go to http://yourwebsitename.com/?q=contact. For example, ours is located at http://drupalfordummies.com/?q=contact.
The last step is to provide visitors to your site with a link to this form. To add a link to your Main menu, follow these steps:
Click List Links to the right of Main Menu.
You will see a list of your current main links. You need to add a new one for the contact form.
Click Add Item.
This opens the Add Item form, as shown.
In the Path text box, enter contact.
In the Menu Link Title text box, enter the text you want to appear in your primary menu as the link to the contact form.
Your contact form will now be available to registered users.
If you want to make your contact form available to both registered and unregistered users, you need to change the permissions:
Click People on the Dashboard menu bar and then click the Permissions tab.
Locate the Contact module and select the Use the Site-Wide Contact Form check box under the Anonymous User column.
Click Save Permissions.