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.

How to change the Notification BCC?

  1. I know how to change the notification email with a hook.

    add_filter("gform_notification_email", "change_notification_email", 10, 2);
    		function change_notification_email($email, $form){
    		return "mattsex@gmail.com";
    }

    But how do you change the BCC with a hook?

    Posted 9 years ago on Wednesday September 5, 2012 | Permalink
  2. You can use the gform_pre_submission_filter http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter to change the $form['notification']['bcc'].

    [php]
    // change 53 here to your form ID
    add_filter('gform_pre_submission_filter_53', 'add_bcc');
    function add_bcc($form){
    
    	// add your email addresses here
    	$form['notification']['bcc'] = 'administrator@example.com';
    
    	// return the modified form object
    	return $form;
    }
    Posted 9 years ago on Wednesday September 5, 2012 | Permalink