Hi,
I have a php sendmail script sending attachments. This is fine, the attachments send, correct file name, but always 34bytes.
I'll post the section of code that attaches the attachments.
if (is_uploaded_file($resumefile)) {
$resume = fopen($resumefile, 'rb');
$resumedata = fread($resume, filesize($resumefile));
fclose($resume);
}
$resumedata = chunk_split(base64_encode($resumedata));_
//add attachment to message using mime boundary
$message .= "--{$mime_boundary}\n" .
"Content-Type: {$resumetype};\n" .
" name=\"{$resumename}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
$message . "\n\n" .
"--{$mime_boundary}--\n" .
"Content-Transfer-Encoding: base64\n\n" .
$resumedata . "\n\n".
"--{$mime_boundary}--\n";
Then it sends the email using mail();
Any help would be appreciated