| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 08:46:26 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_send_email_failed/
server: cloudflare
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
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: MISS
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=oPBvObEhL7nEuDBfkN4D7Fw5XJeph5ySfw3Ab%2F%2Bj47EFsDtzEZzNCbXs6ckT4MJ8Hj5OWFeUZLySxaQTfWr0ZSxQcP1AOgbvKvT8G4NmcsvEODKv"}]}
cf-ray: 9b478c22a86ca9b7-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 08:46:27 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
content-security-policy: frame-ancestors 'self';
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: EXPIRED
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=weH7zpQ7PQ%2FqOM55rvg3ukjiZ%2Bq3dVjLLlMsAbqdohZO5WKcK03JNLgm5syaSV7nG82H6wjMrWQxxz%2BTrEyTg13Hmatl4l6jRzqWnOVfwu4E%2BPEI"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b478c294a4ea9b7-BLR
gform_send_email_failed - Gravity Forms Documentation
gform_send_email_failed
Description
Triggered when an email from Gravity Forms fails to send.
Usage
add_action( 'gform_send_email_failed', 'my_function', 10, 3 );
Parameters
- $error object
A instance of WP_Error for the error returned from the email failure.
-
$email array
An array containing details of the email that failed to send. It includes the following keys: ‘from’, ‘to’, ‘bcc’, ‘reply_to’, ‘subject’, ‘message’, ‘from_name’, ‘message_format’, ‘attachments’, ‘cc’
-
$entry array
The entry object.
Examples
The example below would use WordPress core wp_mail() function to send a basic email about the failed notification. For obvious reasons, it will work only if the site is able to send other emails. If for whatever reason your server is blocking all the emails from your WordPress, you wouldn’t get this email either.
// Notification failure alert.
add_action( 'gform_send_email_failed', function ( $error, $details, $entry ) {
GFCommon::log_debug( __METHOD__ . '(): running.' );
$to = '[email protected]'; // Change this to your email address.
$subject = 'Notification failed!';
$body = "Notification email '$details[subject]' for entry #$entry[id] failed.";
wp_mail( $to, $subject, $body );
}, 10, 3 );
Source Code
This action hook is located in common.php.