# Copy All Gravity Forms Notifications to an Archive Address

> Adds a blind copy of every Gravity Forms notification to an archive or CRM inbox, so you keep a record of all submissions even if entries are deleted.

- Type: PHP
- Runs: Run everywhere
- Category: [Forms](https://wpide.com/library/category/forms/)
- Tags: gravity-forms, notifications, bcc
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/gf-bcc-archive/

## Code

```php
$wpide_gf_archive_email = 'forms-archive@example.com';

add_filter( 'gform_notification', function ( $notification ) use ( $wpide_gf_archive_email ) {
    if ( ! is_email( $wpide_gf_archive_email ) ) {
        return $notification;
    }

    $bcc = trim( (string) rgar( $notification, 'bcc' ) );
    $notification['bcc'] = $bcc ? $bcc . ',' . $wpide_gf_archive_email : $wpide_gf_archive_email;

    return $notification;
} );
```

## Notes

Existing BCC addresses on a notification are kept; set the archive address at the top.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Copy All Gravity Forms Notifications to an Archive Address" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
