Hi guys, Can anyone help me out with this one? I want to be able to attach an image to this email script and mail it out. The picture is coming from a file upload in the form - '$picture' // Send the e-mail $to ="email@emailaddress"; $subject ="Website - Classified Ad Request"; $IP = $_SERVER['REMOTE_ADDR']; $body.="$contact_person has submitted a classified ad request.<br /><br />"; $body.="<b>Membership Number:</b> $member_id<br />"; $body.="<b>Name:</b> $contact_person<br />"; $body.="<b>Email:</b> $email<br /><br />"; $body.="<b>Title:</b> $title<br />"; $body.="<b>Category:</b> $category<br /><br />"; $body.="<b>Description:</b><br />$description<br /><br />"; $body.="<br /><br />"; $body.="----------------------------------------------------<br />"; $body.="sent by: $contact_person - $email<br />Ip: $IP<br />"; $body.="----------------------------------------------------<br />"; $from="\"$contact_person\" <$email>\n"; $headers="Content-Type: text/html; charset=Windows-1252\n"; $headers.="From: $email \n"; mail($to,$subject,$body,$headers); echo(" <p align=left><font class=\"maintext\">Thank you. Your request is being processed.<br /><br /><br /></font></p> "); exit; Code (markup): Any help would be greatly appreciated
Have a look at phpmailer. http://phpmailer.codeworxtech.com/ http://phpmailer.codeworxtech.com/examples.html