Hello all

I've set my core contact module, to limit the mail sending to 50,
i've installed the contact module, and now the limit is set to 5.
i het this error message : "You cannot send more than 5 messages in 1 hour. Try again later."
Is there a way to have more sendable messages ?
i went to the contact form settings, but the settings tab is not there anymore. (see image)

Thank you all

CommentFileSizeAuthor
Image 10.png50.88 KBjoachim desarmenien
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim desarmenien’s picture

hello,

i changed this line

$limit = variable_get('contact_threshold_limit', 5);

to

$limit = variable_get('contact_threshold_limit', 20);

on line 19 and 183 of contact.pages.inc

and it works

logo007’s picture

thanks worked for me too..

gpk’s picture

What's really needed here is a D6 version of http://drupal.org/project/flood_control which provides a UI for setting the contact_threshold_limit variable.

The problem is that the variable contact_hourly_threshold was renamed in D7 to contact_threshold_limit, which what this drop-in contact.module uses and is why any value you had previously set gets disregarded. So another workaround would be to manually edit the database and rename the variable contact_hourly_threshold to contact_threshold_limit (in the {variables} table).

After doing that make sure you clear cached data (Admin -> Site config -> site performance) so that the change takes effect.

Perhaps a better overall solution for D6 would be for this module to reinstate the contact settings page and to use the D6 variable names. Or if it just did the latter you could temporarily disable this module to get access to the D6 core contact settings page.