# Change notification default To and From email

**URL:** <https://community.gravityforms.com/t/change-notification-default-to-and-from-email/11182>\
**Category:** Get Help\
**Tags:** gform\_pre\_send\_email, admin\_email\
**Created:** [November 15, 2021, 6:14pm UTC](https://community.gravityforms.com/t/change-notification-default-to-and-from-email/11182 "2021-11-15T18:14:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swinggraphics](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/swinggraphics/32/1900_2.png) [@swinggraphics](https://community.gravityforms.com/u/swinggraphics)\
**Post date:** [November 15, 2021, 6:14pm UTC](https://community.gravityforms.com/t/change-notification-default-to-and-from-email/11182/1 "2021-11-15T18:14:44Z")

</div>

I assume there’s a filter for this. It’s really annoying for me and confusing for clients when these are my email address ({admin\_email}) instead of something actually appropriate.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 15, 2021, 6:38pm UTC](https://community.gravityforms.com/t/change-notification-default-to-and-from-email/11182/2 "2021-11-15T18:38:04Z")

</div>

Hello. You could use the gform\_pre\_send\_email filter to change the to and from addresses globally for all Gravity Forms notifications.

> **[gform\_pre\_send\_email](https://docs.gravityforms.com/gform_pre_send_email/)**
>
> Use this filter to modify the email before a notification has been sent. You may also use this to prevent an email from being sent.

The code would look something like this:

```auto
add_filter( 'gform_pre_send_email', function ( $email, $message_format, $notification, $entry ) {
	$email['headers']['From'] = 'From: "From Name" <fromaddress@example.com>';
	$email['to'] = 'newaddress@example.com';
	return $email;
}, 10, 4 );

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [December 15, 2021, 6:38pm UTC](https://community.gravityforms.com/t/change-notification-default-to-and-from-email/11182/3 "2021-12-15T18:38:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
