Send Mail with Attachment - A new feature from FocalMail 1.2 and higher.

About Send Mail with Attachment

Before we continue with the setting, you must read the following in order 
to fully understand how this send mail with attachment works.

In PHP 3.0.5, it has a very import new feature, which allow any incomplete 
upload file to be automatically deleted.  This is very import for system 
operator to secure their system.  Here we explain why.  If any user keep 
reload or re-submit the same upload page, it will cost the server to crash 
or the fill temporary upload with junk files.  This will cost tons of 
administration.  To solve the above problem, we offer the following's solution.

1) A user will fill in the upload information in the sent attachment page.
2) User clicks at the upload button and the client side browser start 
   transfers files back to server.
3) PHP copies the file to a specific temp. directory if the upload is success
   or delete the junk files.
4) PHP send the uploaded file information to the client and store its 
   information in an HTML form.
5) As the user click at the send button in the compose.php3, reply.php3, or 
   forward.php3, our script will read back the information about those uploaded files.  It will send those files out and delete them from the temp directory.
6) Even the user stop the result page, the mail will still mail out, and 
   those uploaded files will also be removed.

As we mentioned, the above method with help from PHP 3.0.5, we filter out 
those incomplete upload files.  However, if user uploaded the files and stop 
the other steps, our script cannot recognize those as abandoned files.  
Those files will store in the specified temporary directory.  To help you 
to maintain with this problem, we write a simple php script (in php to 
allow all FocalMail admin to be able to use it.) to delete those unwanted 
files simply by deleting all previous dated files in the specified temp 
directory.  You may put it in a special directory.  However, it will not 
do any harmful action if any user execute it.

Setting up Send Mail with Attachment

1) You must specify if you allow send mail with attachment.  
   Simply change the $allowfileattach valuable in config.inf.

2) You then need to tell FocalMail where your successfully upload 
   files wish to be placed.  Provide the exact path, and make sure that 
   the path can be access by FocalMail.
   e.g.: (note: the last directory must be tmp)
   /home/focalmail/tmp

   in the $filepath please have : $filepath="/home/focalmail/tmp";

3) Setting the $maxallowuploadsize will limits the total attachment size.
   Note:  It is in bytes.

That is, and if you have any question, please write email to us.

Maintenance FocalMail with maintenance.php3

Once you run this short script, all abandon upload files with previous 
date will be removed from specified temporary directory.
