I\'m working on file attachment here. The mail function is working fine other than the file field is empty. I have tried using Content-Type: multipart/mixed
and som
update your form opening tag with
add below code before starting for if condition
if ($_FILES['upload']['error'] == 0) {
$filename = $_FILES["upload"]["name"];
$content = file_get_contents( $_FILES['upload']['tmp_name'] );
$content = chunk_split(base64_encode($content));
$uid = md5(uniqid(time()));
}