gform_sendgrid_send_email_failed

Description

Triggered when an email from Gravity Forms fails to be passed to SendGrid.

Usage

add_action( 'gform_sendgrid_send_email_failed', 'my_function', 10, 6 );

Parameters

  • $error_message string

    The error message.

  • $sendgrid_email array

    The SendGrid email arguments.

  • $email array

    The original email details.

  • $message_format array

    The message format, html or text.

  • $notification array

    The Notification object.

  • $entry array

    The current Entry object.

Since

This action hook was added in SendGrid version 1.4.

Source Code

This action hook is located in GF_SendGrid::maybe_send_email() in gravityformssendgrid/class-gf-sendgrid.php.