Posted by ulf1 on July 31, 2008 at 4:54pm
| Project: | Reroute Email |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi,
If reroute email module is enabled, but the rerouting emailadress is empty (I selected "restore default button), emails are not being sent to original recipient, because in your code you do
$message['to'] = variable_get(REROUTE_EMAIL_ADDRESS, ini_get('sendmail_from'));
despite the fact that REROUTE_EMAIL_ADDRESS is empty.
It should not be necessary to enable/disable the module all the time.
All configuration should be done from within the configuration dialog. If the reroute field is empty I would expect the email to be sent to its original recipients.
Thanks,
Ulf
Comments
#1
I had this same problem and hacked the module (simplified patch attached). This allows me to disable rerouting by setting this in my $conf array in settings.php:
<?php$conf = array(
'reroute_email_address' => '',
);
?>
In a distributed development environment, it'd also make it easy for each dev to set a different email address to reroute to.
#2
#3
Automatically closed -- issue fixed for 2 weeks with no activity.