Can anyone help?? I am using the following script. $name8 is the variable for the attachment. Have I put it in the mail function correctly??? Thanks for looking.mail
<?PHP
// ------------- CONFIGURABLE SECTION ------------------------
// $mailto - set to the email address you want the form
// sent to, eg
//$mailto = "youremailaddress@example.com" ;
$mailto = 'jason@buildyourowncomputer.info' ;
// $subject - set to the Subject line of the email, eg
//$subject = "Download Form" ;
$subject = "Download Form" ;
// the pages to be displayed, eg
//$formurl = "http://www.example.com/feedback.html" ;
//$errorurl = "http://www.example.com/error.html" ;
//$thankyouurl = "http://www.example.com/thankyou.html" ;
$formurl = "http://www.buildyourowncomputer.info/download/contact/contact.php" ;
$errorurl = "http://www.buildyourowncomputer.info/download/contact/contact2.php" ;
$thankyouurl = "http://www.buildyourowncomputer.info/download/contact/contact2.php" ;
// -------------------- END OF CONFIGURABLE SECTION ---------------
$name = $POST['name'] ;
$name1 = $POST['name1'] ;
$name2 = $POST['name2'] ;
$name3 = $POST['name3'] ;
$name4 = $POST['name4'] ;
$name5 = $POST['name5'] ;
$name6 = $POST['name6'] ;
$name7 = $POST['name7'] ;
$name8 = $POST['name8'] ;
$email = $POST['email'] ;
$email = $POST['email'] ;
$comments = $POST['comments'] ;
$http_referrer = getenv( "HTTP_REFERER" );
$messageproper =
"------------------------- COMMENTS -------------------------\n\n" .
"E-mail Address: $email \n".
"File Name: $name \n".
"Short Description: $name1 \n".
"Long Description: $name2 \n".
"Creator/Author: $name3 \n".
"File Version: $name4 \n".
"Screen Shot URL: $name5 \n".
"Documentation/Manual URL: $name6 \n".
"Category: $name7 \n".
"File : $name8 \n".
"\n\n------------------------------------------------------------\n" ;
mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>\nX-Mailer: chfeedback.php 2.01",$name8 );
header( "Location: $thankyouurl" );
exit ;
?>