dc_jt Posted November 2, 2006 Share Posted November 2, 2006 I have form which emails details input by user. I have a field which uploads an image, but i need this to be attached to my email.The code for my email at the moment is:[code]//send email $name=$_REQUEST['name']; $email=$_REQUEST['email']; $address=$_REQUEST['address1']; $town=$_REQUEST['town']; $city=$_REQUEST['city']; $postcode=$_REQUEST['postcode']; $country=$_REQUEST['country']; $license=$_REQUEST['license']; $memory=$_REQUEST['memory']; $photo=$_FILES['photo']; $datap=$_REQUEST['datap']; $to = "***@***.com"; $subject = "Readers Archive"; $message = 'Name: ' .$name."\n". 'Email: '.$email."\n". 'Address: '.$address."\n". 'Town: '.$town."\n". 'City: '.$city."\n".'Postcode:'.$postcode."\n".'Country: '.$country."\n".'Photo:'.$photo; $from = 'From: ***@***.com'; mail($to, $subject, $message, $from); mail("***@***.com", $subject, $message, $from); }}?>[/code]This successfuly emails all user details. So how could i attach the actual photo to this?? (At the moment is just says 'Array' next to the photo part in the email.Thanks Quote Link to comment Share on other sites More sharing options...
doni49 Posted November 2, 2006 Share Posted November 2, 2006 Consider switching to phpmail. Otherwise you need to do a lot of work to get the attachment to go along with the message.http://phpmailer.sourceforge.net/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.