Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   phphq.Net Forums (https://novahq.net/forum/forumdisplay.php?f=277)
-   -   Uploader: Email notification (https://novahq.net/forum/showthread.php?t=44866)

timj 03-22-2010 02:02 PM

Uploader: Email notification
 
Love the product, and thanks for the security update.

As a feature, I would like to be notified by email when an item is uploaded. I can't see where to add that code.

hysteriksmile 03-22-2010 04:16 PM

I'm interested too :)

Scott 03-23-2010 08:12 AM

After ln 263:
PHP Code:

    If(($error=="") AND ($success=="")) {
        
$error.="<b>FAILED:</b> No files selected<br />";
    } 

Add:
PHP Code:

If($success!="") {
 
mail ("Youremail@email.com""File Uploaded""A file has been uploaded at your website");



stcxiong 02-07-2011 08:57 AM

Hi, I am using phUploader 1.2 and I am interested in adding If($success!="") {
mail ("Youremail@email.com", "File Uploaded", "A file has been uploaded at your website");
}

to the php code but I can't locate If(($error=="") AND ($success=="")) {
$error.="<b>FAILED:</b> No files selected<br />";
}

Help?

Scott 02-07-2011 03:02 PM

It's near line 263..


All times are GMT -5. The time now is 09:31 AM.

Powered by vBulletin®