Plugin: Autocoupons
This plugin allow you to use special placeholders in any e-mail template which will be replaced with unique coupon code.
You can use the following placeholders in e-mail templates:
%coupon%to replace it with coupon code from default coupon batch (You can specify default coupon batch in plugin settings). In this case settings from plugin configuration will be used to create coupon.%coupon_batchID%to replace it with coupon code from batch with id equal to batchID (batchID is numeric value of batch_id for existing batch in your installation eg.%coupon_33%. You can find batch_id value page at Coupons List, column#). In this case settings from corresponding coupon batch configuration will be used (section "Auto Coupon Settings").