CMailFile
This is a simple class to attach a file to a mail message (using mime encoding).

Usage is as follows:

$newmail = new
CMailFile($subject,$sendto,$replyto,$message,$filetoattach,$mimetype); $newmail->sendfile();

CMailFile requires and uses the following built-in PHP3 functions: base64_encode(),chunk_split(),fread(),mail()

Thanks to Dan Potter! He fixed the script!

Here is a link to the script. Please send an e-mail if you find any problems with the script. Thank you.