Quick Code Mod required for Wordpress plugin

Discussion in 'PHP' started by nhldigest, May 12, 2007.

  1. #1
    The plugin that I want to use called CForms is a contact form submission plugin that offers CC feature when submitting the form contents. I would like to add a bcc feature to this plugin, but I can't figure out how to change the code.
    Here is the assistance that I received so far...any help would be greatly appreciated:

    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.

    Would I insert the bcc email addresses like:

    "BCC: " . $joesmith@hotmail.com . $eol;BCC: " . $janesmith@hotmail.com . $eol;...etc???
     
    nhldigest, May 12, 2007 IP
  2. xooMan

    xooMan Peon

    Messages:
    92
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Actually, you do it like this:

    $headers .= "BCC: , ".$eol;
     
    xooMan, May 18, 2007 IP