Skip to main content

Filter: gform_pre_send_email

Modify the email before a notification has been sent.

You may also use this to prevent an email from being sent.

Parameters

NameTypeDescription
$emailarrayAn array containing the email to address, subject, message, headers, attachments and abort email flag.
$message_formatstringThe message format: html or text.
$notificationarrayThe current Notification object.
$entryarrayThe current Entry object.

Since

  • 2.2.3.8: Added $entry parameter.
  • 1.9.15.6: Added $notification parameter.
  • Unknown: Unknown

Source

Defined in common.php at line 2459