Adding a Blind Copy Address to Contact Form

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
danielbone1

Adding a Blind Copy Address to Contact Form

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Adding a Blind Copy Address to Contact Form

Post by Ted »

Is this a hardcoded BCC?  Or somethat that should be defined in the submitted form?
danielbone1

Re: Adding a Blind Copy Address to Contact Form

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Adding a Blind Copy Address to Contact Form

Post 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.  :)
danielbone1

Re: Adding a Blind Copy Address to Contact Form

Post 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
danielbone1

Re: Adding a Blind Copy Address to Contact Form

Post 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
danielbone1

Re: Adding a Blind Copy Address to Contact Form

Post 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
danielbone1

Re: Adding a Blind Copy Address to Contact Form

Post 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
danielbone1

Re: Adding a Blind Copy Address to Contact Form

Post 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
Locked

Return to “Modules/Add-Ons”