Need help to make a contact form that generates coupon code

I want to make a contact form for my wordpress website created for a local service providing business. The form is basically will be a order form. When a customer makes an order then he will be redirected to a Thank you page and he gets an unique reference/ticket code written on that page. At the same time he will be emailed with the same contents. I tried by using contact form 7 but it doesn’t have such feature. What is the solution? Tutorial suggestion is also appreciated.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.