> For the complete documentation index, see [llms.txt](https://landofcoder.gitbook.io/magento-2-coupon-code-generate/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://landofcoder.gitbook.io/magento-2-coupon-code-generate/faqs/how-to-use-coupon-code-in-newsletter-email.md).

# How to use coupon code in Newsletter email

You can use the shortcode in newsletter email content as this:

Newsletter email variables:

{{var subscriber.generateCoupon(promotion-xmas-rule)}} – Generate coupon code by rule\
{{var subscriber.getUsesPerCoupon(“coupon-alias”)}} – get uses per coupon by coupon alias\
{{var subscriber.getCouponExpirationDate(“coupon-alias”)} } – get coupon expiration date by coupon alias\
{{var subscriber.getCouponDiscount(“coupon-alias”)}}  – get coupon discount amount by coupon alias\
{{var subscriber.getCouponCode(“coupon-alias”)}} – get coupon code by coupon alias
