Attaching uploaded files to the e-mail

We'll be seeing later on in Chapter 8, Uploading Files from your Forms how to add file inputs to your forms and handle the files after the form is submitted. Here we are going to anticipate that and look at how to add an uploaded file to an e-mail.

Getting ready

Any form with a file input and an Email Setup will work.

How to do it...

  1. Open the Email Setup by clicking the Setup Emails tab for the form and in the Email Properties box and set Enable Attachments to Yes (actually that's the default setting so you probably won't have to do anything).
    How to do it...
  2. Test the form.

That's it!

See also

  • Chapter 8, Uploading Files From your Forms is where we talk about uploading files from your forms. See the first recipe in that chapter to add a file input to your form.