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.

Need a customized contact form? Check the WebForm Module. A recent change to the Contact_Forms module allows you to use these two modules together.

 

Comments

Customize contact form

Above you say "Need a customized contact form? Check the WebForm Module. A recent change to the Contact_Forms module allows you to use these two modules together."

This statement makes me think you need both the WebForm Module and the Contact_Forms module to customise contact forms.
The Contact_Forms module to use the form(s) created by the WebForm Module. Is this correct? If so how? I cannot see any relationship between these modules.

Thanks,
hovel

Yes

WebForm can create a form to be used as the contact form. That is the extent of their "relationship."

Site content question

Hi Nancy - Great site - straightforward and easy to follow -

I think a link is broken or out-of-date -

You wrote "To add a link to a content page use Contact Us. Unfortunately, this does not give you the capability to specify which contact to send it to. Fortunately, there is help! Check out the Contact List module."

But the link for Contact List doesn't work, nor can I find a module with that name -
Take care

Renamed

The module has been greatly improved and renamed Contact Forms.

How Many Contacts in a Category

Hi Nancy,

I've asked this on the Drupal Forums but got no response. Could you tell me if there is a limit to the amount of email addresses that one can add to a category on a contact form in Drupal? Or if there is a limit to the amount of characters that can be added.

I have one contact form with 166 email addresses, but I have a feeling that it is being sent to only about 75 of them.

Thanks for the help,
Mark Conroy.

Wow

I would have to do some digging to find out. I do know that the column in the database is defined as "longtext" which should mean you can store at least 64K. I assume if you hit that limit, you will get some kind of error message.

You might want to look into some type of mailing list and use its name rather than all those email addresses.