I'm running a competition on my site and at the moment we've just got a simple form which asks a question and for some basic details. Correct answers will go into a hat to choose the winner.
We also want every entrant to be sent a 10% off coupon for the shop providing the prize. So a few questions;
1. How could we auto-generate a unique code to be sent to each entrant in the "thank you" e-mail?
2. Or could we attach a more professional-looking printable PDF that for printing out, and pass the unique code to that?
Appreciate any help/advice/pointing in the right direction!