Solved

Can we have BCC option while reply by the user?

Posted on 2011-02-14
9
824 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
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 17

Assisted Solution

by:psimation
psimation earned 33 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 34 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 109

Assisted Solution

by:Ray Paseur
Ray Paseur earned 33 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

856 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