Download & Extend

BCC an address when contact form is used

Project:Email Field
Version:6.x-1.1
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Whenever someone uses the contact form, I need to BCC a specific address (they want to know and make sure things are taken care off). Any advice?
Thanks

Comments

#1

I think this would be pretty cool. If someone could help with this it would be awesome...

#2

I think this is a great idea

#3

Hi, well after a while, I figured it out.

you have to add this piece of code to the module cck email

1- open the file email.module
2- look for this: function email_mail($key, &$message, $params)
3- find this piece of code

// Prepare the body:
$message['body'] = implode("\n\n", $msg);

and add the code below just underneath it.

add the following code below the
$message['headers'] += array(
'Bcc' => 'you@yoursite.com'
);

4- upload the module

I hope this helps!!!

#4

Status:active» closed (duplicate)

duplicate of #678350: BCC From CCK Email Form

#5

nobody click here