Download Notifications

This topic contains 3 replies, has 4 voices, and was last updated by  fatmir 10 months, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
#10203

jjspelman
Member

This plug in works quite well but I, and my client, are really disappointed at the lack of a viable solution for email notification of downloads. Other forum posts here “jokingly” suggest hiring a developer. Why would we need to do this when you are the developer? Spend additional funds to have what could be a baked in feature. At the very least provide another solution? Has anyone else found a way to do this?

#10233

Shahjada
Keymaster

Add the following code at the end of download-manager/functions.php

function wpdm_download_notification($package){
wp_mail("your-email-here", "New Download: {$package['title']}","your message here","From: no-reply@sitename.com\r\n");
}

add_action("before_download", "wpdm_download_notification");
#12107

Debayne
Member

Hi,

I have added this to functions.php but it is not picking up on the package name and it is sending 2 emails out

Also is there anyway to add the email address when using email lock into the email?

Thanks,

#88655

fatmir
Member

Hi,

please check the attachment and help me to add the download “description” to show it in email notification.

best regards

Fatmir

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.