Jump to content

Create file during email than attach


coupe-r

Recommended Posts

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

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?

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.