Sending Coupon code

Compatible with Responsive Emails extension

The Newsletter Popup extension is compatible with our Responsive Emails extension. That means, you will find already prepared email templates for this extension and will be able to edit them with user-friendly MT Editor. It also helps you to speed up an integration process and the emails will have the same look as others. If you don’t have it yet, you can get the Responsive Emails extension here.

Below are some examples of the email templates which comes with Responsive Emails extension:

Customise Email Template with Default Editor

Create new email template

If you're not using Responsive Emails extension or already have "Thank you" email template you can customise it with default Magento 2 email template editor.

First you would have to create new email template (or edit existing) which will be used instead of default Magento 2 "Newsletter Subscription Success" email template.

1. You can create new template here:

Marketing >> Comunication >> Email Templates >> Add New Template

2. Load default template called: "Subscription success"
3. Enter template name, for example: "Subscription success with discount code"
4. Enter template subject, for example: "Newsletter subscription success"
5. Insert coupon code variable to the template:
{{var subscriber.np_discount_code}}

Your email content should look like:
{{template config_path="design/email/header_template"}}
{{trans "You have been successfully subscribed to our newsletter."}}
{{if subscriber.np_discount_code
}} {{trans "Your coupon code:"}} {{var subscriber.np_discount_code}} {{/if}}
{{template config_path="design/email/footer_template"}}

Save the template.

Set newsletter subscription success message template

This can be done in Magento 2 configuration page at:

Stores >> Configuration >> Customer >> Newsletter >> Subscription Options > Success Email Template

Choose the new template and save configuration.