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
I hope it is just a typo. You are using the var $msg
twice. Once for Your html-message and for the body of the message.
';
$msg .= ' Request Sent From : ' . $reqBy . '
';
$msg .= ' Name : ' . $name . '
';
if($_POST["phone"] != "") {
$msg .= ' Phone : ' . $phone . '
';
}
if($_POST["company"] != "") {
$msg .= ' Company : ' . $company . '
';
}
if($_POST["message"] != "") {
$msg .= ' Message : ' . $message . '
';
}
if($_POST["industry"] != "") {
$msg .= ' Industry : ' . $industry . '
';
}
if($_POST["job"] != "") {
$msg .= ' Job Role : ' . $job . '
';
}
if($_FILES["upload"] != "") {
$msg .= ' Upload : ' . $upload . '
';
}
$msg .= '
';
$msg .= '