Jump to content


EmailForm bcc


  • You cannot reply to this topic
4 replies to this topic

#1 katherholt

    Likes Etomite Forums!

  • Member
  • PipPip
  • 323 posts

Posted 19 November 2004 - 04:04 PM

I love this form - so easy!

Can you tell me how to put a recipient for a blind copy so that I can monitor that the form is working and receive copies?

Is it possible to send the form to a certain email without using the "recipient_array" so the user does not have to make a selection?

So far this form is working great on 2 sites of mine:
http://www.flowerybranchga.org/index.php?id=24
http://katherholttour.temp.powweb.com/index.php?id=23

Has anyone extended this snippet for more functions - i.e., radio buttons, check boxes, yes/no responses?

#2 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 19 November 2004 - 06:30 PM

katherholt, on Nov 19 2004, 12:04 PM, said:

I love this form - so easy!

Can you tell me how to put a recipient for a blind copy so that I can monitor that the form is working and receive copies?

Is it possible to send the form to a certain email without using the "recipient_array" so the user does not have to make a selection?

So far this form is working great on 2 sites of mine:
http://www.flowerybranchga.org/index.php?id=24
http://katherholttour.temp.powweb.com/index.php?id=23

Has anyone extended this snippet for more functions - i.e., radio buttons, check boxes, yes/no responses?
Find the line of code like the first one below and then add the BCC line I have added, then assign your email address to the $bcc_email = "your_email_address"; somewhere towards the top of the code where the variables are assigned... That should work for you...

$bcc_email = "your_email_address"; <-- Added to the variable assignment section
>>> SNIP <<<
$additional_headers = "From: $email\n";  <--  Original line of code
$additional_headers .= "BCC: $bcc_email\n";  <-- New line of code


#3 katherholt

    Likes Etomite Forums!

  • Member
  • PipPip
  • 323 posts

Posted 20 November 2004 - 01:27 PM

rad14701, on Nov 19 2004, 02:30 PM, said:

Find the line of code like the first one below and then add the BCC line I have added, then assign your email address to the $bcc_email = "your_email_address"; somewhere towards the top of the code where the variables are assigned... That should work for you...

$bcc_email = "your_email_address"; <-- Added to the variable assignment section
>>> SNIP <<<
$additional_headers = "From: $email\n";  <--  Original line of code
$additional_headers .= "BCC: $bcc_email\n";  <-- New line of code


I have it working now, but something weird is happening. Even though I put a different name in the "From" field on the form - it is emailed to me with my email address of the server the form is hosted on. Any ideas?

#4 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 20 November 2004 - 01:53 PM

katherholt, on Nov 20 2004, 01:27 PM, said:

I have it working now, but something weird is happening. Even though I put a different name in the "From" field on the form - it is emailed to me with my email address of the server the form is hosted on. Any ideas?
try adding a reply_to field as well as a from field... in ur headers.


Dean:)

#5 katherholt

    Likes Etomite Forums!

  • Member
  • PipPip
  • 323 posts

Posted 20 November 2004 - 02:43 PM

deanstev, on Nov 20 2004, 09:53 AM, said:

try adding a reply_to field as well as a from field... in ur headers.
Dean:)

I figured it out. I removed the bcc code (this removed the funny "From" my ISP email server account and put the correct "From" of the person filling out the form) and then I added another email recipient to the "webmaster" array:

$recipient_array["Webmaster"] = "karen@bluebonnetdesigns.com,katherholt@hotmail.com";

This worked in sending the email to both accounts, however I would like to hide one of those emails so the customer doesn't see my email account receiving a copy of the form for monitoring - when I add my name to the "City Manager" recipient. I'm attaching a text file of my modified snippet if you can see how to help. Attached File  EmailForm.txt   4.36K   62 downloads





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users