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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.