Mail sent to addresses in Bcc and Cc fields
jonathan_hunt - January 29, 2008 - 00:33
| Project: | Reroute Email |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Reroute Email works by overriding the 'To:' address in the email and passing on the other parameters (including email headers) unchanged. This allows emails with Bcc or Cc fields to still be sent out from the site rather than rerouted. For example, the Mass Contact module (http://drupal.org/project/mass_contact) has a use Bcc option and Reroute Email lets these through.
I made the following fix in reroute_email_mail_alter()
// Suppress Bcc and Cc fields otherwise email will still go out
unset($headers['Bcc']);
unset($headers['Cc']);
#1
Please submit this as a patch to the current version.
#2
Generate from svn; does this work for you?
#3
Committed. Should be in the -dev release tomorrow.
Thanks.
#4
Automatically closed -- issue fixed for two weeks with no activity.