I’m using mail() function on my feedback page.
There are 3 fields: Name, Mail and Message.
Want to add new field – File, with the ability to upload files and send them to my email.
Some limits:
.zipand.rarfiles only allowed- file can’t be more than
200kbin size.
How to do this and prevent security holes?
To learn about file uploads, see Handling file uploads in the PHP manual
To send E-Mail with attachments, using a PHP class like Swiftmailer instead of
mail()is a good idea.