Page 1 of 1
Adding a Blind Copy Address to Contact Form
Posted: Tue Jan 10, 2006 2:03 am
by danielbone1
Hello there.
I was wondering if there was a way to add a blindcopy email address using the contact form tag on a page. I have done some research on this, but didn't want to mess with any code until I hear from you guys. I don't really trust myself with php as of yet, if this is what i need to change.
Thanks for any help,
Dbone
Re: Adding a Blind Copy Address to Contact Form
Posted: Tue Jan 10, 2006 10:52 am
by Ted
Is this a hardcoded BCC? Or somethat that should be defined in the submitted form?
Re: Adding a Blind Copy Address to Contact Form
Posted: Tue Jan 10, 2006 3:37 pm
by danielbone1
A hardcoded bcc wishy. i want to have all emails sent using the form, blind copied to one central address.
So basically the form as it is now except that an email will also be sent to a blind address.
Thanks,
Dan
Re: Adding a Blind Copy Address to Contact Form
Posted: Wed Jan 11, 2006 12:50 am
by Ted
If you edit plugins/function_contact_form.php, find the line:
Code: Select all
$extra = "From: $name <$email>\r\nReply-To: $email\r\n";
And I THINK you can make it:
Code: Select all
$extra = "From: $name <$email>\r\nReply-To: $email\r\nBcc: someone@domain.com\r\n";
Keep in mind it's not tested, though.

Re: Adding a Blind Copy Address to Contact Form
Posted: Wed Jan 11, 2006 1:23 am
by danielbone1
Thanks wishy. I will give it a go later on tonight.
No worries about not being tested. If it doesn't work I'll just take it out.
Now I have to figure out how to move this entire site over to a new server. I am sure that someone has asked this on here before. I will get it.
Learning more each day about this.
Thanks again,
Dbone
Re: Adding a Blind Copy Address to Contact Form
Posted: Wed Jan 11, 2006 6:13 am
by danielbone1
Looks great. Thanks Patricia. I did find the other posts with the walk thru, but this made it much clearer for me. Hopefully I can move it to the live server tomorrow.
Thanks so much for your help,
Dan
Re: Adding a Blind Copy Address to Contact Form
Posted: Tue Jan 31, 2006 5:49 am
by danielbone1
Hello again,
Well I have finally tried to move to the live server. Just a few questions.
These are the steps that I have followed.
Uploaded Cmsmadesimple files to the new server.
Set permissions correctly
Ran the install and unchecked the box for creating tables.
Install seemed to take.
On old site.
Ran a backup of cms database
saved it to my HD
On new site.
tried restoring thru cpanel - I did get a message saying that it was restoring the database
Viewed my config file on new site and all of the links look correct.
Changed the lines in the sql to point to my new site.
Now I am getting the pconnect error that many others have had.
I immediately checked the database name and username and they are correct.
I have tried the entire process twice tonight and still not working.
Is there a step that I am leaving out or one that I am not following properly.
Any help would be greatly appreciated,
Thanks,
Dbone
Re: Adding a Blind Copy Address to Contact Form
Posted: Tue Jan 31, 2006 5:38 pm
by danielbone1
Thanks for the response Patricia,
Not exactly sure how but the username error has cleared itself up! Weird.
So now when I go to the site I get a "site down for maintenance" message.
If I try going to my admin I get the
"Fatal error: Call to a member function on a non-object in /home/valentin/public_html/lib/content.functions.php on line 983"
message. I have reinstalled this folder on the server with no luck.
Wondering what steps I should take next.
Thanks,
Dbone
Re: Adding a Blind Copy Address to Contact Form
Posted: Wed Feb 01, 2006 11:10 pm
by danielbone1
All is well. Just posting an update to my problem.
This entire time it was a problem with my hosting company. I didn't realize why I was getting the many
errors when I tried to restore the database. They moved it for me and everything is up and running.
Thanks so much for your help and a special thanks to Patricia for taking
the time to help me with this.
Dbone