Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
Image 10.png | 50.88 KB | joachim desarmenien |
Comments
Comment #1
joachim desarmenien CreditAttribution: joachim desarmenien commentedhello,
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
Comment #2
logo007 CreditAttribution: logo007 commentedthanks worked for me too..
Comment #3
gpk CreditAttribution: gpk commentedWhat'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.