rendered paste body$boundary = '-----=' . md5( uniqid ( rand() ) );
$headers = "Content-Type: application/msword; name=\"Agreement\"\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\"";
$headers .= "Content-Disposition: attachment; filename=\"$filename\"\n\n";
$headers .= "Content-Transfer-Encoding: base64\n";
$headers .= "Content-Disposition: attachment; filename=\"$filename\"\n\n";
// $headers .= $textline. "\n";
$to='billdpt@airstarcommunications.net';
$subject='Contract for $company submitted on $date';
mail($to, $subject,'Please find below the contract', $headers);