coupe-r Posted January 10, 2011 Share Posted January 10, 2011 Hi All, I don't really need help with the code, I just need to know the process... This will take place in a simple form. The user enters the payment information and checks off 'Send Receipt' option. From there, the payment data is stored in the DB. Then, I need to have a PDF generated of the receipt and finally email the tenant with confirmation and the PDF that was created. Once the data is inserted, I can use fPDF to merge the data to the PDF document I created. That part I don't understand is how to automatically save that file and attach it to an email. Ideas / suggestions? Quote Link to comment Share on other sites More sharing options...
requinix Posted January 10, 2011 Share Posted January 10, 2011 You don't have to save to a file, unless whatever email thing you're using requires it. If you have the data as a string you can stick it into the email directly. What are you using to send the email? mail()? PHPMailer? Do you know yet? Quote Link to comment Share on other sites More sharing options...
coupe-r Posted January 10, 2011 Author Share Posted January 10, 2011 Well, for the time being, its mail() but I see most people are using PHPMailer, so I will probably switch. I designed a nice looking PDF for the receipt as well as every other document that could be needed, so I would rather send them the PDF instead of just the text in an email... How would you do this? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.