Hi folks
Is there a way we can include "File Attachment" field on ContactForm for the users to send their files along with the message ?. Help will be much appreciated.
Thanks
Check eForm snippetin Resources list.
regards,
zi
-
☆ A M B ☆
- 24,524 Posts
eForm does handle uploaded files as attachments. You do have to make sure that the phpMailer class in Manager is the latest version, however.
# &format (Optional)
# list of form fields that requires server-side validation
# - format: field_name:field_description:field_datatype:field_required
# - field_required: 0 or 1
# - field_datatype:
# string,
# date,
# integer,
# float,
# email,
# file - for file upload input
...
The eform.inc.php file processes the uploaded files from your form and ships them off to phpMailer along with the rest of the mail data.