November 13th, 2000, 07:44 PM
Hi there, I was wondering if anyone can help me?
I am trying to track down a feedback form similir to Matt Wright's script that would allow the the sending of File Attachements added to the email by the user.
I am looking at using MIME email format, with an auto detection of mime type.
I would like the user to select a file via a browse button, then when the form is processed it attaches the file as a mime attachement.
Is there anyone who could help me? or provide me with some urlsof where I could find such a script??
November 21st, 2000, 11:10 PM
Have you found your script? CGI.pm, which you surely have, will allow file uploads. There is a small security (is that an oxymoron?) issue with allowing file uploads and it is not universally compatible...
I recommend Lincoln Stein's book on CGI.pm but his program examples (including a file upload demo and script) are here:
Try the demo, it's pretty cool.
Once you have the file on your server, the MIME::Lite perl module can send a MIME encoded email in just a few lines.