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

kbahey - April 2, 2008 - 21:14
Version:5.x-1.x-dev» 5.x-1.0
Status:active» needs work

Please submit this as a patch to the current version.

#2

jonathan_hunt - April 3, 2008 - 03:07
Status:needs work» needs review

Generate from svn; does this work for you?

AttachmentSize
reroute_email-215279.patch 567 bytes

#3

kbahey - April 3, 2008 - 03:19
Version:5.x-1.0» 5.x-1.x-dev
Status:needs review» fixed

Committed. Should be in the -dev release tomorrow.

Thanks.

#4

Anonymous (not verified) - April 17, 2008 - 03:21
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.