send mail including file attachment
<p>Mail is being send with file attachemant but its not possible to open it.</p>

<p>what is the problem please solve out this.</p>

   
    --PHP-mixed-
    Content-Type: multipart/alternative; boundary="PHP-alt-"

    --PHP-alt-  
    Content-Type: text/plain; charset="iso-8859-1" 
    Content-Transfer-Encoding: 7bit

    Hello World!!! 
    This is simple text email message. 

    --PHP-alt-  
    Content-Type: text/html; charset="iso-8859-1" 
    Content-Transfer-Encoding: 7bit

    <h2>Hello World!</h2> 
    <p>This is something with <b>HTML</b> formatting.</p> 
    --PHP-mixed-
    Content-Type: $file_type; name=$file_name
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment

    
    --PHP-mixed--- 

    
