hi guys,
got it solved at... The only difference from the original code was that instead of one boundary I made it as two boundaries.. inner and outer.. I started with the outer boundary and placed the html message in the inner boundary.. the images part was placed after that and it worked fine........
$mailString.="\r\n--".$OB."\r\n";
$mailString.="Content-Type: multipart/alternative;\r\n\tboundary=\"".$IB."\"\r\n\r\n";
$mailString.="\r\n--".$IB."\r\n";
$mailString.="Content-Type: text/html;\r\n\tcharset=\"iso-8859-1\"\r\n";
$mailString.="Content-Transfer-Encoding: 7bit\r\n\r\n";
$mailString.= '<html><head></head><body><table border="1" cellpadding="2" cellspacing="1" bordercolor="#f0f0f0">';
$mailString.= '<tr><td>Name </td>'; // other html codes
$mailString.= '</table><body></html>';
$mailString.="\r\n--".$IB."--\r\n";
$mailString.= "\r\n--".$OB."\r\n";
$mailString.="Content-Type: application/octetstream;\r\n\tname=\"".$file_name."\"\r\n";
$mailString.="Content-Transfer-Encoding: base64\r\n";
$mailString.="Content-Disposition: attachment;\r\n\tfilename=\"".$file_name."\"\r\n\r\n";
$fd=fopen ($fname, "r");
// code for reading file comes here
$mailString.="\r\n--".$OB."--\r\n";
mail($to, $subject,$mailString, $headers);
the problem of gif image not showing up fully was in apache under windows. in linux box its fine..
thought if this may be of help to someone..
cheers