May 18th, 2017, 12:57 PM
Hey everyone,
I created an HTML form that has the option of attaching a file. In the process.php for formtools, I've created a personalized email to anyone who fills out the form. The email is sent to whoever filled out the form (they're forced to provide email address) and it sends them their answers for the form. Everything works fine with the plain text but I can't figure out what php script would be needed in order to email the user whatever file they attached while submitting the form. Currently, the files upload properly within formtools on my server, I just can't figure out how to get the file to appear as an attachment with the user's email after submitting.
Any chance for help on this?
I created an HTML form that has the option of attaching a file. In the process.php for formtools, I've created a personalized email to anyone who fills out the form. The email is sent to whoever filled out the form (they're forced to provide email address) and it sends them their answers for the form. Everything works fine with the plain text but I can't figure out what php script would be needed in order to email the user whatever file they attached while submitting the form. Currently, the files upload properly within formtools on my server, I just can't figure out how to get the file to appear as an attachment with the user's email after submitting.
Any chance for help on this?