Child pages
  • Follow Up Email 2.0 - Magento 2

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


FireFox user notice:

Please use different web-browser for viewing this document.

Sorry for the incoivenenice.


Follow Up Email - Magento 2

Thank you for choosing Aheadworks!


Installing Follow Up Email


To install the extension follow the instructions below:


1. Backup your web directory and store database


2. Download Follow Up Email installation package


 3. Upload contents of the Follow Up Email installation package to your store root directory


 4. In SSH console of your server navigate to your store root folder:

No Format
cd path_to_the_store_root_folder


No Format
php -f bin/magento module:enable Aheadworks_Followupemail2


No Format
php -f bin/magento setup:upgrade


No Format
php -f bin/magento setup:static-content:deploy

5. Flush store cache; log out from the backend and log in again


Make sure the installation is done from under the FTP administrator account. Otherwise make sure to set 775 permissions to the store root directory after the extension is deployed.




Set up cron



If you have already configured cron jobs for your Magento installation then you can skip this step. Read the following instructions on setting cron job for your Magento store: Magento user guide.

Generally it would be enough to run in SSH console of your server: 


Code Block
crontab -e


And insert the following line:  


Code Block
*/3 * * * * php -c <ini-file-path> <your Magento install dir>/bin/magento cron:run
*/3 * * * * php -c <ini-file-path> <your Magento install dir>/update/cron.php
*/3 * * * * php -c <ini-file-path> <your Magento install dir>/bin/magento setup:cron:run


Don't forget to confirm saving request when exit.




Introducing Follow Up Email



Follow Up Email extension is a smart email marketing solution that sends emails based on customers’ activity at the store:

  • Abandoned checkout;
  • Order status changed;
  • Customer registration;
  • Last customer activity;
  • Customer birthday.

Follow Up Email offers five customer triggered email events for sending relevant messages ad hoc. Every event covers particular aspect of the customer’s store activity: registration, placing orders, etc.

When the event is triggered an email message is sent to the customer’s email address. You can create multiple email templates for a single event adjusting the email subject, body and signature.

Each event email can be scheduled to fire at the appropriate time. For example you may want to schedule an Abandoned Checkout email to fire 30 minutes after customer left a cart at your store, or ask customer for a product review in two weeks after an order has been shipped.


Extension settings


Once Follow Up Email extension installed the first screen the store administrator wants to visit to is the General Extension settings. The screen is responsible for the general extension's behavior and we advise visiting and cofiguring all the extension settings beforehand.

There are three sections of the general settings available.


The General configuration section contains settings that control Follow Up Email behavior in general.

The following settings can be found in this section:

  • Sender - defines the email address that will be used to send all emails by default. The email addresses are taken from the store settings.
  • Test Email Recipient - defines the email address which will receive all the test emails sent by the store administrator. Test email address may prove useful if you want to see the end email on different devices and want to make sure it has been compiled properly.
  • BCC Email Address(es) - defines email addresses (separated by commas) that will receive ALL emails sent by the extension. May prove useful if want to receive a carbon copy of all emails sent to keep the track and reference.
  • Test Mode - defines if the Test Mode for extension is enabled. Once enabled ALL the extension emails, disregarding the customer who activated the event, are sent to the Test Email Recipient.

Once done with the General settings, the store administator is suggested to proceed to the next block.

Mail Log

This block is represented by the single setting - Keep Emails for, days. The setting controls for how many days the emails sent by the extension are kept in the Mail Log. While '0' value set disables log cleaning, it is not recommended to use such value, as emails may take a solid amount of space at your harddrive, which should be strongly considered on customer-heavy stores.

Header and Footer

This settings block controls what header and footer templates should the extension use by default. Header and Footer templates may represent blocks of text or media, that are added before or after the email body correspondingly.

Header and Footer templates may prove useful if you want to keep the particular style of all the emails sent. For example if you want to add your company's definitive signature to every email sent. The signature can be added automatically if you use a separate footer template as default.


Once done with the extension settings the store administrator is suggested clicking .



When it is over with the extension settings, the store aministrator can start creating first follow up emails. With 2.0 of Follow Up Email introduced the emails are managed in email Campaigns. The Campaign serves as a briefcase for the emails, and have been introduced for quick and effective email management. The email Campaigns can contain multiple events and numerous emails, all under the same Campaign. In such way, that the store administrator can always find proper email in few clicks.

For example. Most of the store may find the use of thematic campaigns: Xmas, Easter, etc. Xmas campaign can consist of several events:

  • Customer Registration - which will contain an email with a Merry Christmas message for the newcomers;
  • Order Status Changed - which will contain emails thematically decorated for Xmas that inform customers on their order status changes;
  • Abandoned Cart - which will contain different emails depending on the items customers left in the cart with a special Xmas coupon code urging customers to finish their order.

Campaigns screen

The campaign screen consists of the following elements:

Campaign description block - this block's purpose is not to let you get lost. It contains the description of the email campaing created by the store administration, and a number of event and emails the campaign contains. The campaign on the screen seems to be the test campaing, as follows from the description and contains two events with 24 emails distributed across.

Campaign statistics block - this block represents the average value of the campaign's email performance. As of now, only 2 emails have been sent, one has been opened and a link in the email has been clicked once. Which results in a striking 50% open rate (hope you get no less) and a 100% click rate. Fine numbers.

Campaign controls block - this block is represented with the actions available for the campaign:

  • Edit Campaign - clicking this opens a window with the campaign name, description, start and end dates;
  • Duplicate - clicking this allows duplicating the campaign for further adjustments;
  • Delete - clicking this completely removes the campaign and all associated emails from the store;
  • button opens directs you inside of the campaign for adding new events and emails.

Creating new Campaign

To create new campaign click button.

When creating a campaign there are following settings:

  • Enable Campaign - defines if the campaign is enabled;
  • Campaign Name - defines campaign name for internal identification purposes;
  • Campaign Description - defines campaign description for internal identification purposes;
  • Start Date - defines campaign start date. If required, campaign can be scheduled on the start date;
  • End Date - defines campaign end date. When the end date comes, the campaign will no longer send emails.

A new campaign has been created. You can now click button to proceed to creating Events and Emails.



The Events is what defines Follow Up Email. Event is a particular action that customer has to do in order to receive an email. It works the following way:

  1. Customer browses the store;
  2. Customer activates an Event;
  3. Email is created and scheduled;
  4. Email is sent.

Currently there are five types of events:

  • Abandoned Cart - customer needs to leave a shopping cart with items for one hour to activate this event;
  • Order Status Changed - customer needs to place an order, every time order status changes customer receives an email;
  • Customer Registration - customer needs to register at the store to activate this event;
  • Last Customer Activity - customer needs to abandone the store for the specified period to receive an email;
  • Newsletter Subscription - customer needs to subscribe to newsletter to activate this event.

As you can see, customer only need to browse your store and whatever customer does to receive the emails.

Manage Events screen

Once you enter the Campaign you to the Manage Events screen.

  • Campaign details block - block contains all the details about the campaign the store administator is currently in.
  • Event details and control block - block contains event name, description and a set of control options same as for Campaigns.
  • Event emails block - block contains all emails chain for this event. All emails created under this event will be sent one after another.

Creating New Event

To create new Event click button.

General event settings

  • Enable Event - defines if the event is enabled;
  • Event Name - defines event name for internal identification purposes;
  • BCC Email(s) - defines email addresses the carbon copy of the email should be sent to;
  • Send to Newsletter Subscribers Only - defines if the emails of this event should only be sent to customers who subscribed to the newsletter.

Email Chain Delivery Settings

If Failed to Send Email setting defines the pattern on which the emails are sent. If the previous email failed to be sent, the first option is to Skip the failed email, and continue sending out consecutive emails. The second option is to cancel the whole email chain.

The settin is really depends on wheter the emails created are somewhat connected and the following comes from the previous one. So it is up to the store administrator to decide on the preferable pattern.

Condition settings

Conditions define on which scenation the emails should be sent. In other words, what store view, customer group, items in the cart or in the order should trigger the email sending.

There can be up to four condition blocks:

  • General conditions - define at what store view(s) the email is active;
  • Customer conditions - define for what customer group(s) the email will be sent, and if only customers with the particular amount of lifetime sales will receive an email;
  • Cart conditions - define which items should be in the customer's cart for the email to be sent;
  • Products - define what product types should be in the customer's cart for the email to be sent.

Once done with the settings, the strore administrator clicks button.

Creating emails


Once the Event is created the store administrator can click button in the Event Details and Control block to add new email to is.

General settings

  • Enable Email - defines if the Email is enabled;
  • Name - defines the name of the Email for internal identification purposes;
  • Send Email - defines when the email should be sent;

Note the description displayed after the Send Email setting. First email in the chain is sent after the event is activated, consecutive emails are sent related to the previous email.

For example:

The first email is sent 1 day after the event is activated;

The second email is sent after two days from the previous email;

It means that the second email is sent after three days after the event is activated.

A/B Testing Mode

A/B testing allows you to send two emails at once. 'A' email is sent to 50% of the customers, 'B' email is sent to another 50% of customers. The customers are split randomly into two groups. These two groups cannot intersect in consecutive emails, and are preserved through the whole A/B testing process.

  • Enable A/B Testing - defines if A/B testing is enabled. Once enabled the store administrator gains an access to the body of the B email.
  • Primary Email - define which email variant is sent once A/B Testing is disabled.

Email Details

Allow store administrator to compose and edit the body of the email.

  • Sender Name - defines the name displayed in the 'From' field of the email;
  • Sender Email - defines from which email address the email is sent;
  • Subject - defines the subject of the email which is displayed to the customer;
  • Content - here the store administrator composes the contents of the email (supports HTML);

Additionally the following control elements available at the Email Details block:

- allows inserting Magento native and Follow Up Email variables to the email;

- allows previewing the email as it will be sent to customers;

- allows sending test email to the Test Email Recipient for testing purposes.

That's it. Once the emails are created the store administrator can start the campaign and start sending out the emails.

Email directives

In addition to the standard set of variables the extension introduces, the store owner may find use to the thumbnail directive that is available specifically for Abandoned Cart and Order Status Changed emails.

The directive can be used the following way:

No Format
<ul>{{for item in quote.getAllVisibleItems()}}
<img src="{{thumbnail width="100" height="150" source="$item.product"}}"/>

Or like this:

No Format
<ul>{{for item in quote.getAllVisibleItems()}}
<img src="{{thumbnail width="100" height="150" source="$item.product"}}"/>
  • Thumbnail width and height are optional;
  • Aspect ration is forced by default and corresponds with the original product image;
  • As a source one can also use product id. To do this, replace PRODUCT_ID with the ID of the product from the catalog.

Mail Log


Mail Log is where all the sent emails are kept for tracking purposes.

The Mail Log represents a grid with the relevant email data such as: Campaign name, Event type, etc. The grid comes with the following control elements:

  •  button allows adding/disabling the grid columns, some may be excessive and some relevant to your current tasks;
  •  button allows looking for the emails matching a set of attributes;
  •  button allows saving perfect grid look you found to quickly load it whenever required.

You can always find the latest version of the software, full documentation, demos, screenshots and reviews at
License agreement:
Contact Us:
Copyright © 2016 aheadWorks Co.