Hi there!
Can anyone tell me, how to attach an image in mail using php. i want to send email with some information and 1 image as an attachment when click on the submit button. and images upload script already worked and to upload images in server one folder that folder name is attach.which images upload script are given follow which i will that script. plz send ur suggestion in this regard, ur replies will be highly appreciated,
if(isset($pImage)){
//echo "File Name: ".$pImage;
//echo "<br>File Temp Name: ".$_FILES['upload']['tmp_name'];
//echo "<br>File Size: ".$_FILES['upload']['size'];
//echo "<br>File Type: ".$_FILES['upload']['type'];
if($_FILES['upload']['size']<(50*1024)){
if(isset($pImage)){
$path="Attach/";
$arrImg=explode('.',$_FILES['upload']['name']);
copy($_FILES['upload']['tmp_name'],$path.$pImage);
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --