code is not work correctly plx solved this problem 0) { die(‘upload error’); } //read from the uploaded file & base64_encode content for the mail $handle = fopen($file_tmp_name, ‘r’); $content = fread($handle, $file_size); fclose($handle); $encoded_content = chunk_split(base64_encode($content)); $boundary = md5(“sanwebe”);