Note: as of 2013/05/07 I have been unable to get this project to send an email. I don't know what the problem is so I will no longer support it.
*** If you implement this on your server you may want to have code in place to prevent the email client being used for sending spam emails. I had a problem with a developer sending multiple emails in less than 1 minute causing my internet hosting service to disable my server for a few days, so -- take necessary precautions! ***
I have just completed testing of a simple email client which uses a php server script to attach an uploaded file to the email. The test destination was my Gmail account. To simplify use and error handling, the fields for from, to, subject and message body must contain text, but the file attachment box is optional. Feel free to try it using my server as any uploaded files are deleted from a temporary directory on my server as soon as the email is forwarded to the mail server. I also am maintaining a log file containing time stamps, file names and file sizes. I have no way to identify any of your personal information, nor do I wish to. Also you may wish to improve on either the php script or the AI project (especially auto-entry of email addresses would be nice!). I will leave that to you. Have fun! By the way, multiple file attachments are supported in the type of header used in this example, but that was beyond the scope of the project.