Topic RSS
9:01 pm
Greetings,
I asked about the possibility of making a bcc feature in addition to the cc feature in the blog comments and these are the instructions that I got.
Generally, you can quite easily go into the code and add a BCC field to the email header (in case you choose not to use the built in CC-option):
look for the below statement (lines ~468 & 910, 931):
$headers.= "Reply-To: " . $field_email . $eol;and add a$headers.= "BCC: " . $field_email . $eol;and/or change $field_email to whatever specific email address you want.
I am obviously not a programmer at all and I am having troubel figuring out how to do this.
Any assistance would be greatly appreciated.
Thank you in advance.
9:28 pm
OK,
I cahnged the code to this at the first spot (~468)…is this correct?
- // ready to send email
// email header for regular email
$eol = "\\n";
$headers = "From: \\"".get_option('blogname')."\\" <wordpress@" . preg_replace('#^www\\.#', '', strtolower($_SERVER['SERVER_NAME'])) . ">" . $eol;
$headers.= "Reply-To: " . $field_email . $eol;
$headers.= "BCC: " . $field_email . $eol;
$headers.= "MIME-Version: 1.0" .$eol;
$headers.= "Content-Type: text/plain; charset=\\"" . get_option('blog_charset') . "\\"" . $eol;
I still can't figure out how to alter the two remaining areas…assuming that this is even correct…
7:52 am
March 6, 2005
OfflineThat looks about right. If you want to make the BCC dependent on the "CC:" form input field, you may want to add an IF :
if( $ccme )
$headers.= "BCC: " . $field_email . $eol;
You should also disable the code block below // send copy or notification?, otherwise the visitor will end up getting two emails!
And finally you need to do all the above also for the non-AJAX version which you'll find further down the code. Just search for the other // send copy or notification?
4:20 pm
Oliver,
Thank you for the reply.
I am totally lost when trying to code…I have no background at all.
However, I will give your suggestions a try and see what I can come up with.
If you don't mind, I will post my changes here for you to take a glance at.
Thanks again for your help.
Regards,
Tyler
Most Users Ever Online: 959
Currently Online:
106 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
tracedef: 43
mores: 21
Gyrus: 20
frozenwaste: 18
asuffredini: 15
photoworks: 14
Member Stats:
Guest Posters: 3550
Members: 1464
Moderators: 3
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 5158
Posts: 18389
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)
FAQs
Home
Add Reply
Add Topic
Quote











