Download via Email
Embed a form in your pages and posts that accept an email address in exchange for a file to download. The plugin is simpler, quicker, with minimal database usage, and completely in WordPress' way
by Mayeenul Islam (@mayeenulislam) · github.com/mayeenulislam/download-via-email · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mayeenulislam/download-via-email/archive/refs/heads/master.zipEmbed a form in your pages and posts that accept an email address in exchange for a file to download. The plugin is simpler, quicker, with minimal database usage, and completely in WordPress' way.
Description
Embed a form in your pages and posts that accept an email address in exchange for a file to download. The plugin is simpler, quicker, with minimal database usage, and completely in WordPress' way.
Installation
- Download the latest version of the plugin from Github release
- Unzip the plugin, and Upload
download-via-emailfolder to thewp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress admin panel
- Change the necessary settings from the admin panel 'Download via Email' menu page
Now, put the shortcode into page/post
[email-downloads file="absolute-path/to/the/file.ext"]
Frequently Asked Questions
What is the shortcode
[email-downloads file="absolute-path/to/the/file.ext"] is the shortcode. You have to mention the absolute path of the file to let the user download the file. It is not necessary to upload the file to your WordPress site, it can be any public path, even can be a Dropbox, OneDrive, or Google Drive link
What type of email is supported as sender?
For now on, only an on-domain email address as sender works, because we used rudimentary WordPress mailer function that works with an on-domain email address like something@yourdomain.com. Default is noreply@yourdomain.com.
Will my download link be encrypted
Yes, we do not believe in sending raw absolute URL of a file, so it's by core encrypted to its maximum strength
Is the mail HTML-formatted
Yes, the email is HTML-formatted by default
For how long the link will be valid?
By default any link that is generated for an email address would be valid for 12 hours only
What happen to the email addresses got by the form?
The email addresses are saved in database, and is visible in the admin menu page
Does the plugin deletes its data on deletion?
Yes, the plugin deletes all its data on uninstallation
What's the default privilege using the plugin?
Default privilege to the admin menu page is 'administrator'. But there is a filter hook nano_ed_role, with this you can add a filter to change the role anytime. :)
Screenshots
- Download via Email - how it will look like at the front end
- Download via Email - the admin panel settings page
Changelog
1.0.2
- A function conflicting with WordPress core was fixed
1.0.1
- New database
download_emailis added to sort stored email correctly
1.0.0
- A rudimentary WordPress plugin to enable sending download link to email address
- Completely in WordPress database schema - no other table, no column
- Email storage in
optionstable
Upgrade Notice
1.0.2
A function conflicting with WordPress core was fixed
1.0.1
New database download_via_email is added to sort stored email correctly
1.0.0
A rudimentary WordPress plugin to enable sending download link to email address
Completely in WordPress database schema - no other table, no column
Email storage in options table
Deletion of all the data on uninstallation of the plugin