Thnks SamEA for your time...
when i add this line after the if statement, than it may happen, that the $uploadmsg is undefined. Isnt it?
I also dont understand why, he should send unwanted mail, with my changed uploaded.php
$rand2 = urlencode($rand2);
- Encode
$uploadmsg = "$lang[ufile] (".$filename.") $lang[wup].\n ". $lang[udownfile] . ":" . $scripturl . "$short" . $rand2 . "\n ". $lang[udeletefile] . ":" . $scripturl . "$short" . $rand2 . "&del=" . $passkey . "&ignore=" . "\n $lang[thank]";
- generate uploadmsg
if($emailoption && isset($_POST['myemail']) && $_POST['myemail']!="") {
mail($_POST['myemail'],"Your Uploaded File",$uploadmsg,"From: ". $email ."\n");}
- if someone type in his mailadress in uploadfront end (and emailoption is activated) he sends a mail to "_POST[myemail]" (the uploader)
- this is my mail adress, i want to have a mail everytime, something is uploaded
$rand2 = urldecode($rand2);
- decode
I'm sorry that i dont understand... but i willl test this on monday. To get what you say'd. So please, dont investigate to much in this...but maybe you can add this to a future "feature Request" list!? to integrate this option the right way, later!?
Thank you anyway for your help. have a nice sunday!