CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 15:02:38 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: MISS
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=41GnlfqXQ12pdlu2NR3csnt9Ewfn47ibTlj3Thp3cFRrfYjEyWjt8plMT7s2ZPJ2cUBDi7yEeT%2BzUg2O37ZtYm0V2Ke3PM%2FD4V7%2BBUz1nPTCaMOG"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98cf3d5149caa9c3-BLR
gform_autoresponder_email - Gravity Forms Documentation
gform_autoresponder_email
Description
This filter is executed before sending the user notification email. It can be used to route the notification to a different email address.
This hook has been deprecated in v.1.7. Please use gform_notification instead.
Usage
Applies to all forms
add_filter( 'gform_autoresponder_email', 'change_notification_email', 10, 2 );Applies to a specific form. In this case, form Id 5
add_filter( 'gform_autoresponder_email_5', 'change_notification_email', 10, 2 );Parameters
- $email stringThe email address to be filtered.
- $form Form Object
The current form.
Examples
This example uses the gform_autoresponder_email filter to send the user notification to a test email address
add_filter( 'gform_autoresponder_email', 'change_notification_email', 10, 2 ); function change_notification_email( $email, $form ) { //applying notification routing to form Id 2 if ( $form['id'] != 2 ) return $email; //creating email list from fields 2 and 3. return $_POST['input_2'] . ',' . $_POST['input_3']; }Source Code
This filter is located in GFCommon::prepare_user_notification() in form_display.php