email – wp_mail attachment not working in wordpress
Question
You don't need to know the file names before, you'll have access to them.
I saw you using $subject = $_POST['subject']; - this means the subject will be the value of the input with the name of "subject". In your case, this one :
<input
0
2 weeks
0 Answers
0 views