[RESOLVED]
Hello All,
I think my situation here is a bit unique. I couldn't find anything on search that helped. I have a system where we can email data in HTML format to a client. The data is from a MySQL database. There also may be scanned PDF files associated with that data. Currently, our staff can click "email to client" and send the appropriate data in HTML format. I want to be able to attach a PDF file that exists on the server to that email. I also want it duplicated and renamed before sending, then delete the dupe afterward.
Does that make any sense?
- Staff clicks "Email Data To Client" - This I can do
- PHP pulls from DB and formats data. - This I can do
- PHP finds relevant PDF file (on another web server). - This I can do
- PHP creates copy of PDF file under another file name (on local server). - This I can do this
- PHP sends email with HTML data and duplicate PDF file. - How Do I attach It???
- PHP deletes duplicate file. - This I can do
I'm not very good at mailers with PHP, and never have done attachments before. I could use some basics to get started. Thanks!
--
Matthew