Multiple reminder email when you have a dev/test copy of your site
kassissieh - October 30, 2009 - 23:02
| Project: | Signup |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I bet many of you have multiple copies of your Drupal sites so that you may write new code or test new modules without mucking up your production site. How do you deal with Signup reminder emails on your non-production sites? Without modification, users would receive three copies of each signup.
I added this little bit of code at line 34 of includes/cron.inc to solve our problem, but I bet a better solution exists. Can you tell me?
<?php
global $base_url;
if (!strstr($base_url, "www.catlin.edu")) {
// Not the production Catlin Gabel website, so don't send reminders
return;
}
?>
#1
How about
http://drupal.org/project/mail_redirect
Not sure if this will work with all modules,
Izzy