Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Upload File Plugin

Upload File Plugin

Upload File Plugin

Can anyone recommend a good wordpress plugin that would allow someone to upload a file and that file would be sent to me through e-mail? I tried the File Uploader 1.1 plugin, but it kept saying the e-mail couldn't be sent, even though I have no issues with other contact forms sending e-mail with no problems.


RE: Upload File Plugin

quicker to write your own than search for one ...


Plugin Name: Email Me The File
Plugin URI: http://someurl.com
Description: Emails all newly added attachments
Version: 0.1.0
Author: jpadie
Author URI: http://someurl.com
License: GPL2

add_action ( 'add_attachment', 'myplugin_sendMeTheFile'); 

function myplugin_sendMeTheFile($postID=NULL){
  if(is_null($postID)) return false;
  $to = '';
  $subject = 'New File Added';
  $message = "";
  $file  = get_attached_file($postID);
  if (empty ($file) ) return false;
  return wp_mail( $to, $subject, $message, '', array($file) );

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close