Link to home
Start Free TrialLog in
Avatar of Loganathan Natarajan
Loganathan NatarajanFlag for India

asked on

Can we have BCC option while reply by the user?

I have phpmailer class to send mails and set the reply email id also. it works fine. I want to have bcc option if somebody reply to the email ID. can we have like that.
Avatar of psimation
psimation
Flag of South Africa image

Yes.


snip:
$mail->SetFrom('name@yourdomain.com', 'First Last');
21.
22.$mail->AddReplyTo("name@yourdomain.com","First Last");
23.
24.$mail->Subject    = "PHPMailer Test Subject via smtp, basic with authentication";
25.
26.$mail->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
27.
28.$mail->MsgHTML($body);
29.
30.$address = "whoto@otherdomain.com";
31.$mail->AddAddress($address, "John Doe");
32.$bcc_address = "whatever@somewhere.dom";
33.$mail->AddBCC($bcc_address, "Name of Recipient");
snip:
Avatar of Loganathan Natarajan

ASKER

I will check it out
$mail->AddBCC

will this work for while somebody REPLY to my add.?

i want this BCC to work while somebody to reply??
SOLUTION
Avatar of psimation
psimation
Flag of South Africa 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
ASKER CERTIFIED SOLUTION
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
SOLUTION
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