I want to send a file in a link which want to get download.I linked the path of the file in anchor tag.But I doesn't get downloaded.That file gets open in next page without downloading.I want to download a file in anchor tag.I want to download in from a link instead of attachment.
   move_uploaded_file($_FILES['resume']    ['tmp_name'],'resume/'.$_FILES['resume'][name]);
   $url='resume/'.$_FILES['resume']['name'];
   $from = $email;
     $to="websoftbms@gmail.com";
     $headers1 = "From: $from\n";
     $headers = "From: $email\r\n";
     $headers .= "Reply-To: websoftbms@gmail.com\r\n";
     $headers .= "Return-Path: sathurka.mca@gmail.com\r\n";
     $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
      $body = "
      Hello,<br>
     This mail is sent via blumounts.com<br>
     Name:$user<br>
     Email:$email<br>
     Subject:$subject<br>
     message:$message<br>
     resume :<a href='//domain.com/website/$url' download>Download</a> <br>
      ";
    $body.="<br>
    Thank you,<br>
    $user<br>";
    if( $sentmail = mail( $to,"Sent via career form.", $body, $headers ))
    {
    echo '<script>
    window.alert("Email sent");
    window.reload();
   </script>';
   }