File Attachments

DO NOT add the name of the attachment field to the $mail_fields list.

Enter the file attachment field names in the $attchment_fields variable as a comma-separated list. To control the size allowed in the uploads add the following hidden field before the first file upload field.

<input type="hidden" name="MAX_FILE_SIZE" value="30000">

This is a PHP function that will limit the size of the file, the value being the maximum byte size allowed for any file attachment field.

Also note that if you plan to use the file attachment option you need to add the enctype to the form tag.

enctype="multipart/form-data"