hi
i have a problem to send an image by mail....
At destination mail i can get only blank mail...here is the code below.....pls guide me where the problem.....and how can i send an image by mail....
$imgfile="san1.jpg";
$fp=fopen($imgfile, "r");
$rtn=fread($fp, filesize($imgfile));
fclose($fp);
$rtn_mail=mail("sanjay@indianic.com","Image mail","$rtn","From:sanjay_rawat7@usa.net\nContent-Type: image/jpg");
if($rtn_mail==true)
{
print "<p align=center>Mail sent sucessful in Image</p>";
}
pls help me....i really need it...