# Email the Team About New Newsletter Signups

> Sends a short email to your team each time someone subscribes through a Mailchimp for WordPress form, including the form name and page, for low-volume lists where every lead counts.

- Type: PHP
- Runs: Run everywhere
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: mailchimp, newsletter, email
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/mc4wp-notify-team-on-signup/

## Code

```php
$wpide_notify_to = get_option( 'admin_email' ); // Recipient(s).

add_action( 'mc4wp_form_subscribed', function ( $form, $email ) use ( $wpide_notify_to ) {
    $page = wp_get_referer();

    wp_mail(
        $wpide_notify_to,
        sprintf( '[%s] New newsletter subscriber', wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ) ),
        sprintf(
            "Email: %1\$s\nForm: %2\$s\nPage: %3\$s\nTime: %4\$s\n",
            sanitize_email( $email ),
            is_object( $form ) && isset( $form->name ) ? $form->name : '-',
            $page ? $page : '-',
            wp_date( 'Y-m-d H:i' )
        )
    );
}, 10, 2 );
```

## Notes

Set $wpide_notify_to. Not recommended for lists with dozens of signups per day.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Email the Team About New Newsletter Signups" 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/
