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? Link to comment https://forums.phpfreaks.com/topic/223919-create-file-during-email-than-attach/ 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? Link to comment https://forums.phpfreaks.com/topic/223919-create-file-during-email-than-attach/#findComment-1157269 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? Link to comment https://forums.phpfreaks.com/topic/223919-create-file-during-email-than-attach/#findComment-1157270 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.