I have a problem using the DOMPDF
library to generate a pdf and at the same time send it by mail.
What I need is that the moment you click on a button in html is generated and sent the pdf file at the same time; So far only send me the mail with a pdf already generated, but I need the pdf to be generated and sent. The data is collected first in a database and then the pdf is generated with the most recent record in the database.
I hope someone can help me.
Thank you
Note: without using frameworks