hello, I am confirming that this does not work. I have had 12 email alerts come through the specific package I am sending alerts for but I have received over 500 emails. The code currently in use is
add_action(“wpdm_onstart_download”, “download_notification”,10,1);
function download_notification($package_data){
$package_data = get_post($package[‘96524’]);
$headers = ‘From: Site Name <downloads@email.com>’ . “\r\n”;
$headers .= ‘Content-type: text/html’ . “\r\n”;
$message = $_GET[“sfmc_id”] . “,” . $_GET[“utm_campaign”];
$to = ’email@email.com’;
if ($package_data){
wp_mail( $to, “Download Notification: “.$package_data->post_title, $message, $headers);
}
}