I need to create a very simple script with php. There is a form with only one input field, for the user's email address. They click submit, and the script sends an email to that address, while attaching a pdf file that I specify in the script.
I've found many scripts out there that have this functionality but that are just too feature rich and complicated.
I know how to create a script to send an email, but am having trouble attaching the pdf file. I know I need to use fopen and fread, but just can't get it to work. I felt that I knew php fairly well until I tried to do this seemingly simple task. ;) Any simple ideas?
Thanks, you all are great!