I am pretty new in PHP, I do more static HTML pages fom my self an for my friends.
I am using HTML form and PHP script to sent an email with data filled in form.
Now, I want to change PHP script to not sent data in mail body, but to save data to HTML file and then sent this HTML file as attachement. So the script should create HTML file with data form HTML form, save it on server and send the HTML file either as attachement or sent a link to this file on server. And of course, every file shoud be generated with unique name.
I spent days googling without any success. Do anybody have any idea, or know some page, where is written something more about this problem?