View Single Post
  #2 (permalink)  
Old 11-11-09, 08:40 AM
therocket954's Avatar
therocket954 therocket954 is offline
Community Liaison
 
Join Date: Jul 2007
Location: Michigan, USA
Posts: 334
Thanks: 2
Thanked 8 Times in 8 Posts
Try this.... Replace the bottom block of your PHP code with this: (Of course, you'll need to modify it with your correct email address and domain name.
PHP Code:

//If no errors registred, print the success message
if(isset($_POST['Submit']) && !$errors)
{
    
$to "me@mydomain.com";
    
$subject "File upload";
    
$body "My file uploaded successfully... The link is: ";
    
$body .= "http://mydomain.com/" .$newname;
    
    
// Send the email
    
mail($to$subject$body"From: <me@mydomain.com>");
    
    
// Show message
    
echo "<h1>File Uploaded Successfully! Try again!</h1>";

__________________
--Eric Allison
Twitter: http://www.twitter.com/Eric_Allison
Reply With Quote
The Following User Says Thank You to therocket954 For This Useful Post:
braca86 (11-11-09)