PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Multiple Autoresponders to emails in same form - Continued

  1. Hey guys,

    I needed to move this thread over to the general forums: http://forum.gravityhelp.com/topic/multiple-autoresponders-to-emails-in-same-form

    Just getting it started over here.

    Thanks.

    Posted 14 years ago on Wednesday January 27, 2010 | Permalink
  2. Sorry, I forgot to post a link to the form we have setup: http://blogs.maryville.edu/maryvillesportscamps/soccer-camp/team-registration/

    Posted 14 years ago on Wednesday January 27, 2010 | Permalink
  3. We can't access the sample form, it's requiring a login. Can you make it public?

    Posted 14 years ago on Wednesday January 27, 2010 | Permalink
  4. Sorry about that. It's public now.

    Posted 14 years ago on Wednesday January 27, 2010 | Permalink
  5. rgaubatz,
    Place the following code snippet in your theme's functions.php file.
    Let me know if you have any issues

    add_filter("gform_pre_submission_filter", "add_bcc");
    function add_bcc($form){
        if($form["id"] != 2)
            return
    
        $bcc  = $_POST["input_9"] . ","; //player 1 email
        $bcc .= $_POST["input_11"] . ","; //player 2 email
        $bcc .= $_POST["input_13"] . ","; //player 3 email
        $bcc .= $_POST["input_15"] . ","; //player 4 email
        $bcc .= $_POST["input_17"]; //player 5 email
    
        $form["notification"]["bcc"] = $bcc;
        return $form;
    }
    Posted 14 years ago on Thursday January 28, 2010 | Permalink
  6. Thanks, worked like a charm.

    Posted 14 years ago on Thursday January 28, 2010 | Permalink

This topic has been resolved and has been closed to new replies.