I need to create an INVOICE out of a booking form already existing.
When the submit button is pressed, I need to send an email to the customer in a template that I'm calling 'INVOICE'.
Actually the email is already set but the data is sent just via plain text and not html and I think as a string.
Unfortunately the booking form has been 'custom' created and the fields for collecting data are just in a form of raw data. (and I cannot get single field with $_POST...)
If someone can take a look at the code I attached and give some hints/solutions it will be great!
Also, if you need more data I'll post more files.