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']);
CommentFileSizeAuthor
#2 reroute_email-215279.patch567 bytesjonathan_hunt

Comments

kbahey’s picture

Version: 5.x-1.x-dev » 5.x-1.0
Status: Active » Needs work

Please submit this as a patch to the current version.

jonathan_hunt’s picture

Status: Needs work » Needs review
StatusFileSize
new567 bytes

Generate from svn; does this work for you?

kbahey’s picture

Version: 5.x-1.0 » 5.x-1.x-dev
Status: Needs review » Fixed

Committed. Should be in the -dev release tomorrow.

Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.