this seems pretty straight forward, but it just won't email the notification...can anybody see something i'm missing...
btw...i am using this same mail script elsewhere on this particular website...so it DOES indeed work...i've also used the upload script before too...it's working no problem already...
this is just part of the script...the part that ain't doing it's job...
thanks...jv
if ($success)
{
// Successful upload!
$body ="Put a message here";
$myname ="Meeeeeeeeee";
$myemail ="studio@vaska.com";
$headers .= "From: ".$myname." <".$myemail.">\r\n";
<--- I'm guessing that this is where things are going wrong??? --->
mail("$myemail", "Re: Some Things", "$body", "$headers");
print($my_uploader->file['name'] . " was successfully uploaded! <a href=\"" . $_SERVER['PHP_SELF'] . "\">Try Again</a><br>");
} else {
// ERROR uploading...
if($my_uploader->errors) {
while(list($key, $var) = each($my_uploader->errors)) {
echo $var . "<br>";
}
}
}
}