I found what was wrong. The validation needs to be changed from $_POST to $_FILES even when you don't want validation on the file upload. It automatically puts the required on the file element in the form. I did get the email to work when I did this.