<html lang="de-de" dir="ltr"><head></head><body>### [wpforms_emails_send_email_data](https://wpforms.com/developers/wpforms_emails_send_email_data/)

**Published:** September 29, 2025
**Author:** Umair Majeed

**Content:**

## Description

The `wpforms_emails_send_email_data` filter lets you modify the raw email data before WPForms sends it. You can use this filter to change recipients, subjects, messages, headers, or attachments on a per-email basis. This filter is useful for localization, branding, or targeting specific notifications based on the recipient address, form settings, or other available data.

parametertypedescription`$data`arrayThe email data array, including `to`, `subject`, `message`, `headers`, and `attachments`.`$email`objectThe email object instance (WPForms\_WP\_Emails) for the outgoing message.## Source

`wpforms/includes/emails/class-emails.php`

## Example

```

/**
 * Add a prefix to all WPForms email subjects.
 */
function wpf_dev_prefix_email_subject( $data, $email ) {
    $data['subject'] = '[WPForms] ' . $data['subject'];
    return $data;
}
add_filter( 'wpforms_emails_send_email_data', 'wpf_dev_prefix_email_subject', 10, 2 );
```

**Categories:** Filters Hooks

---

</body></html>