GFAPI::send_notifications is sending 2 copies of the same email

The following code for entry_id 32 is sending the notification twice. However, the code snipper is only running once.

$form = GFAPI::get_form(32);
GFAPI::send_notifications($form, $entry);

Hello epagecity. The send_notifications function will send all active notifications for the form, just one time (and you’re not using the notification event, so they will be sent for the default ‘form is submitted’ event). If they are being sent twice, I recommend adding some logging to your code, so you can log when your function is running and see when the multiple notifications are being sent. Here is how you can add custom Gravity Forms logging statements to your code: