wfu_logo_email

WordPress File Upload plugin is able to send email notifications when files are uploaded.

The recipients, the message subject and body, as well as more advanced options, can be configured using special attributes of the shortcode.

The easiest way of setting-up email notifications is by using the Visual Editor of the plugin. So, after we open it, we go to Notifications tab and we enable Notify by Email option:

screenshot68

Then we set Email Recipients at the right-hand side, as a comma-separated list of known email addresses. If we want to include the email of the user who uploaded the files, we add the dynamic variable %useremail%, either by typing it in the textbox or more easily by double-clicking on the useremail button which appears below the textbox.

screenshot69

The editor has preconfigured Email Subject and Email Body, which we can change according to our needs. There are a lot of dynamic variables that we can add, such as user name, user email, filename, filepath, post id etc. If the uploader includes additional fields that the user must fill-in, we can also add them using theuseredata button.

screenshot70

We can also include the uploaded files in the email as attachments, by enabling Attach Uploaded Files option.

Advanced Options

We can define advanced options using email headers, such as format of the email (plain text or HTML), email address and name shown as the Sender of the email etc. We add these headers in Email Headers box, such as:

screenshot71

If we want to configure the notification email even further, so that its elements (recipients’ list, subject, body etc.) are dynamically generated using PHP, we can do this using wfu_before_email_notification filter. We can implement this filter using the Code Hooks feature of the plugin.

Troubleshooting

Sometimes, even if we configure the notification email correctly emails are not sent. In most cases this is not a fault of the plugin but it is caused by misconfiguration of outgoing email settings of the website, or by security restrictions of the web server.

A common solution to this problem is to install an SMTP plugin, like WP Mail SMTP or any other. This kind of plugins reconfigure the wp_mail() function of WordPress to use SMTP instead of PHP mail(). There are a lot of free SMTP plugins that can be found through wordpress.org and instructions on how to configure them.

For any questions or more information, please contact us.

The Iptanus Team

Email Notifications with WordPress File Upload Plugin

19 thoughts on “Email Notifications with WordPress File Upload Plugin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.