Link to home
Start Free TrialLog in
Avatar of pertrai1
pertrai1

asked on

Mail Form BCC Reply

Hi, I have this code that I was wondering if it is possible to put a bcc in the reply back?


It is important that there is a bcc when the message is replied to. Thank you for help.

Rob
$header = "Return-Path: ".$fromemail."\r\n"; 
	$header .= "From: ".$fromname." <".$fromemail.">\r\n"; 
	$header .= "bcc: ".$bcc."\r\n";
	$header .= "Content-Type: text/html;"; 
		  
	$mail_body = '
	'. $_POST[name] . ' has sent a question for the '. $_POST[department] .' committee. On behalf of Region 15, <br>
	please review the question below and share your thoughts with '. $_POST[name] . '.<br><br>
	Name: '. $_POST[name] . '<br>
	eMail: '. $_POST[email] . '<br>
	Phone Number: '. $_POST[phone] . '<br>
	Details: '. $_POST[notes] . '<br>
	IP Address: '. $_SERVER[REMOTE_ADDR] .'--This has been logged on the server so we can monitor the questions asked.'// returns IP.
	;	
	mail ($mailuser, 'Region 15 Committee', $mail_body, $header);

Open in new window

Avatar of darron_chapman
darron_chapman
Flag of United States of America image

There is no way to force a client computer to reply using BCC.
ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You do understand that by using that command, the recipient can see who the email was BCC'd to, and that completely makes BCC useless.

>>It is important that there is a bcc when the message is replied to. Thank you for help.

You accepted an answer that weren't even what you were looking for.
Avatar of pertrai1
pertrai1

ASKER

>>You accepted an answer that weren't even what you were looking for.

Not always in life will we get the answer we are looking for, but if there is no way to have a bcc then this was a useful way of having the message also come back to a source that can watch over the replies. Maybe bcc was not exactly what I was meaning. I don't know if just a copy can be done, but if not, this works fine and that is why I accepted it.

Rob
Thank you for your response... I just wanted you to be aware that if you intended for the BCC to be hidden from the recipient, then this certainly wouldn't be the way to go, but if it doesn't matter to you, then certainly it is a good work around.  I think maybe an assist should be in order here, because you clearly stated that it was important for there to be a bcc when the message was replied to, whether that's what you meant or not, that is what you said.  Just my thoughts on this.  It is certainly up to you.

Thank you,
Darron