Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Can we have BCC option while reply by the user?

Posted on 2011-02-14
9
Medium Priority
?
832 Views
Last Modified: 2012-05-11
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.
0
Comment
Question by:Loganathan Natarajan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 17

Expert Comment

by:psimation
ID: 34886985
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:
0
 
LVL 36

Author Comment

by:Loganathan Natarajan
ID: 34893835
I will check it out
0
 
LVL 36

Author Comment

by:Loganathan Natarajan
ID: 34894873
$mail->AddBCC

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

i want this BCC to work while somebody to reply??
0
Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

 
LVL 17

Assisted Solution

by:psimation
psimation earned 132 total points
ID: 34895469
I'm not sure - my first thought would be that you would not be able to do that since you have no control over your client's e-mail client behaviour. a "Reply All" should automatically take care of this, but a "Reply" will only reply to the original sender.

This *may* need to be done on a lower level of the smtp software on your side: something like a auto-reply/auto-forward to a different address, or a group distribution address?

However, I have been wrong a few times over the last millennium ;) Maybe another expert can help you out here?
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 136 total points
ID: 34921839
Hi logudotcom,

You cannot force an end user's mail client to add the BCC in on a reply.  It's a huge security hole and no mail client I can think of will respect the header.

If all of the messages are going through your web site, then yes...you can.  It's sleazy, but possible given the script above.
0
 
LVL 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 132 total points
ID: 34921848
I know of no email program that will send the "reply" to anyone other than the originator of the email.  That would be the "from" address or the "reply to" address.  "Reply all" does what it sounds like.
0
 
LVL 36

Author Closing Comment

by:Loganathan Natarajan
ID: 34923380
thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to implement server side field validation and display customized error messages to the client.
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question