Index: email.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/email/email.module,v retrieving revision 1.9.2.8.4.12 diff -u -p -r1.9.2.8.4.12 email.module --- email.module 13 Jun 2009 19:01:32 -0000 1.9.2.8.4.12 +++ email.module 17 May 2010 07:07:05 -0000 @@ -361,6 +361,9 @@ function email_mail_page_form($form_stat * Validate the site-wide contact page form submission. */ function email_mail_page_form_validate($form, &$form_state) { + if (!user_access('administer site configuration') && !flood_is_allowed('email', variable_get('email_hourly_threshold', 3))) { + form_set_error('mail', t("You cannot send more than %number messages per hour. Please try again later.", array('%number' => variable_get('contact_hourly_threshold', 3)))); + } if (!valid_email_address($form_state['values']['mail'])) { form_set_error('mail', t('You must enter a valid e-mail address.')); }