Working blanket commit for discount codes generation. Needs sprucing up a little.
Discount codes mentioned in the email should be escaped for special characters.