I want to include auto-generated coupon code that expires in 1 usage in newsletter subscribe email template. Any help will be appreciated.

1 Answer 1


By creating Email template programmatically. You can refer this solution https://store.magenest.com/blog/how-to-send-email-in-magento-2/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.