pff i searched quite a lot and didnt find a free script that can do it(allow files to be attached with the contact form and send it to my email using php mail() ) if anyone knows a free script that can do this please help me out a little thanks, tom
EDIT: Or have a look at this: http://forums.digitalpoint.com/showthread.php?t=355702 http://phpmailer.sourceforge.net/ require("mail.inc.php"); // Instantiate your new class $mail = new MyMailer; // Now you only need to add the necessary stuff $mail->AddAddress("josh@site.com", "Josh Adams"); $mail->Subject = "Here is the subject"; $mail->Body = "This is the message body"; $mail->AddAttachment("c:/temp/11-10-00.zip", "new_name.zip"); // optional name if(!$mail->Send()) { echo "There was an error sending the message"; exit; } echo "Message was sent successfully"; PHP: http://phpmailer.sourceforge.net/extending.html
great stuff! thanks a lot currently il modify krakjoe's script to fit my needs, i will check out phpmailer later rep added