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.
Thanks-
---sfs
*** 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! ***
![](https://lh5.googleusercontent.com/-rMU66lx6Tik/T9AsFhB2dkI/AAAAAAAACbg/RB-eWI_caJA/s320/emailtemplog.PNG)
![](https://lh5.googleusercontent.com/-2ulaSd-GF-I/T9AsKJlMMqI/AAAAAAAACbo/c2HFzWJLitg/s320/mailserverhdr.PNG)
![](https://lh3.googleusercontent.com/-mw063m12WeY/T9AsPWC1IyI/AAAAAAAACbw/S67R_Xi2BOY/s320/scrndes.PNG)
![](https://lh6.googleusercontent.com/-Dfe3lpkC1mA/T9Amw_9q0fI/AAAAAAAACbM/xfmedw0Uat0/s320/Screenshot_2012-06-06-22-57-02.jpg)
![](https://lh3.googleusercontent.com/-m83t_FmsZmo/T9AsCXz9EUI/AAAAAAAACbY/ONF96fxJU6w/s320/blocks.PNG)
![](https://lh5.googleusercontent.com/-DDus0rd-Qbk/T9Atv8iNfHI/AAAAAAAACb4/fcwJK2t_OWo/s320/gmail.PNG)
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.