I am using this php code for receive the contact form data in my email ID.
<?php $ToEmail = '[email protected]'; $EmailSubject = 'Contact form '; $mailheader = "From: ".$_POST["email"]."\r\n"; $mailheader .= "Reply-To: ".$_POST["email"]."\r\n"; $mailheader .= "Content-type: multipart/form-data; charset=iso-8859-1\r\n"; $MESSAGE_BODY = "First Name: ".$_POST["fname"].""; $MESSAGE_BODY .= "Last Name: ".$_POST["lname"]."
"; $MESSAGE_BODY .= "Email: ".$_POST["email"]."
"; $MESSAGE_BODY .= "Contact: ".$_POST["contact"]."
"; $MESSAGE_BODY .= "Product: ".$_POST["product"]."
"; $MESSAGE_BODY .= "Query: ".nl2br($_POST["comment"])."
"; mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure"); ?>
.But i also want to receive the image attachment file.please help me with send me a program for receive the complete form data with attachment asap.