How to cause a .csv file to be downloaded using PHP after sending the .csv via email?
<pre><code>$mailflg = $SiteObj-&gt;Sendsmtpmail($FromMail,$Email,"Check",$trackerCode,$smtpDetails);

if(!$mailflg)
{
    $myFile = "../csv/".$my_file_name;
        $smtpDetails['Test'] = "FAIL";
    $file = @fopen($myFile, "a");
    if($file)
    {
        fwrite($file,$smtpDetails['HOST']. ",".$smtpDetails['USER'].",".$smtpDetails['PASSWORD'].",".$smtpDetails['PORT'].",".$smtpDetails['NOEMAIL'].",".$smtpDetails['SSL'].",".$smtpDetails['FROM'].",".$smtpDetails['Test']. "\r\n");
        fclose($file);
    }
}
else
{
    $myFile = "../csv/".$my_file_name;
    $smtpDetails['Test'] = "SEND";
    $file = @fopen($myFile, "a");
    if($file)
    {
        fwrite($file,$smtpDetails['HOST']. ",".$smtpDetails['USER'].",".$smtpDetails['PASSWORD'].",".$smtpDetails['PORT'].",".$smtpDetails['NOEMAIL'].",".$smtpDetails['SSL'].",".$smtpDetails['FROM'].",".$smtpDetails['Test']. "\r\n");
        fclose($file);
    }
}
</code></pre>

<p>After the email is sent, how do I cause the .csv file to be downloaded to the client machine? (open file dialog)</p>
