gform_mailgun_email

Description

Allows modification of the email arguments which are passed to the Mailgun API.

Usage

add_filter( 'gform_mailgun_email', function( $mailgun_email, $email, $message_format, $notification, $entry ) {
$mailgun_email['h:x-mailgun-native-send'] = false;
return $mailgun_email;
}, 10, 5 );

Parameters

  • $mailgun_email array

    The Mailgun 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.

Placement

This code should be placed in the functions.php file of your active theme.

Since

This filter was added in Mailgun version 1.0.

Source Code

This filter is located in class-gf-mailgun.php.