Email notification after file upload (customizing php)
-
I’m not entirely sure if this is possible but I have this php code that sends an email to me
<?php date_default_timezone_set('UTC'); // sending email via PHP's Mail() $to = '[email protected]'; $subject = $user_login . " has uploaded a new file(s)"; $message = "New files have been uploaded etc.."; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?>Basically i want it to notify me when someone has uploaded a file. (i already have fileup set up in a page)
Which php file would i put this in if i want it to send me an email right after the user has uploaded files using fileup. Thanks for any help.
The topic ‘Email notification after file upload (customizing php)’ is closed to new replies.