emailing a unique discount code to existing database emails
Jason, I worked with Ray to solve my newsletter registration discount code problem and it works perfectly - when someone completes the double opt-in registration for our newsletter they are automatically assigned a unique discount code, which is inserted into our usercoupons table. The single use code can be entered on our cart page and deleted successfully on return from Paypal. I am now trying to apply the logic to allow for all of our existing customers to get a one-time use code as well.
To distribute our newsletter, I use a page with an html editor and universal email behaviour. I create a content filled form from a template on another page, copy and paste it into the editor and email it through the recordset loop on our newsletter page. Should my set session variable for couponCode and insert single record behaviour be added to the newsletter page, with a binding for couponCode session variable added to the template content so it appears in each email - will that send each person a unique code?