Emails

The email concept allows you to customize several types of emails using the Visual Editor. The email concept is based on linking headers and footers to emails, meaning it will be easier to have a design theme through different emails.

Through this article it will be explained how the concept works and how to manually setup everything properly. We have designed a variety of content columns to be used when creating footers, headers, and emails. These are presented and explained at the bottom of the article along with examples of emails created in Swift.

Figure 1.1 Emails can be designed in the Visual Editor

The concept is based on three levels (Figure 2.1). The first level consists of an email folder (1). This will help keep your emails sorted and organized. Due to restrictions, this folder can only contain email related pages. The next level is called an email settings page (2). Email settings pages are organizing pages that will help sort your emails. This means that you can easily organize emails in different kind of newsletters, system emails, etc. The last level is footers, headers, and emails (3).

Figure 2.1 The structure of the email concept

In the example below (Figure 2.2) “Swift Email Layout” (1) is meant to be the default header and footer design. “Swift Newsletters – Light” (2) is linked with the default header and footer. Meaning that emails created here will have the footer and header from “Swift Email Layout”.

In the last email settings page “Swift Newsletters – Dark Green” (3) we have designed a custom green header while the footer from the default footer (1) is linked to the email settings page. Meaning that the emails created here will have the custom green header from “Swift Newsletters – Dark Green” and the default footer from “Swift Email Layout”.

This is just one example of how to use the Swift email concept to ease the process of creating emails for customers. If it still seems a bit confusing, we recommend reading the manual setup guide, as this hopefully will help you understand how the concept works.

Figure 2.2 The structure of the email concept

The email setup should be ready as default on your Swift solution. If not – or if you would like to see a walkthrough of how things work – you can follow this setup guide.

We will start from the top level by creating an Email folder

  1. Click the three dots next to your website name in the content tree
  2. Create a new page and choose the Emails folder
  3. Name it something like “Emails” and make it hidden in menu

As mentioned above, all email related elements can only be added inside this folder due to the default restrictions. This makes it easier to keep everything organized, as you will know where to look for the email related elements.

Next, we will add an email settings page. All email settings pages need to be linked with email headers and footers. When you create emails as subpages to the Email settings page the emails will automatically have the email headers and footers linked to the email settings page. However, email settings pages can link to headers and footers created in other email setting folders. While this may seem confusing it means that you are able to create an Email settings page containing a default header and footer and then link those to other emails settings folders. This means that you can use the same headers and footers for your newsletter, system emails, etc. even though they are not placed in the same email settings pages. Take a look at our examples at the end of this article to get a more visual explanation.

Next, we will create the Email default layout page.

  1. Create new page in the Emails folder
  2. Choose an Email settings page as the new page and name it “Swift Email Layout” and make it hidden in menu

Now, you will have to create a header and footer to link to the email settings page. We will start with the header:

  1. Create a subpage to the “Swift Email Layout” page
  2. Choose an email header as the subpage
  3. Name it “Newsletter header - light” and make it public
  4. Enter the properties of the email header and go to “layout” in the top menu bar.
  5. In the empty dropdown menu choose the “Swift: Swift Email” template
  6. Hit Save and close

Now do the same steps to create a footer:

  1. Create a subpage in the “Swift Email Layout” page
  2. Choose an email footer as the subpage
  3. Name it “Newsletter Footer - Dark” and make it public
  4. Enter the properties of the email footer and go to “layout” in the top menu bar
  5. In the empty dropdown menu choose the “Swift: Swift_Email” template
  6. Hit Save and close

The next step will be to link the email settings page with the new email header and footer. This is important to do before trying to design your header and footer. Otherwise it will result in an error. 

  1. Click on the Emails settings page in the content tree.
  2. Scroll down to the Components section
  3. Link the Default header to the header field
  4. Link the Default footer to the footer field
  5. Hit Save and close

When you have linked your header and footer to the emails settings page you can start designing the pages. 

As mentioned, this email settings folder will work as the default layout folder, meaning that other email settings folders can link to the default header and footer contained inside to keep the design aligned through different emails.

We recommend that if you want to create newsletters, you simply create a new email settings page called “Swift Newsletter - Light” which is then linked to your default header and footer. You can then place all your newsletter emails in this email settings page as shown in the example in Figure 2.2

Should you want to create something more campaign specific like an all-black email layout for e.g., Black Friday or yellow/green for easter you can create a new email settings page containing the custom header and footer. You then create the related email(s) in this email settings page so they will have the right header and footer.

Look at our examples at the end of this article to get a more visual explanation.

The columns used in the Swift emails are specifically designed for emails. They will be presented below.

The article column can be used in different ways, as you can link it to both pages, product groups and products. It can then both be a teaser about a full article the customer can read on the website or a short article about a product or something third.

Figure 5.1 The article column

The article column comes with the configuration options shown on Figure 5.2:

Figure 5.2 The settings of the article column

Using these options, you can:

  • Choose an image for the article and set an Image alt text
  • Select the Image aspect ratio
  • Write a title and choose the style and size of the font
  • Add the text of the article
  • Write a link label and choose where to link I to

For styling options, you can:

  • Set the padding for the column
  • Choose the alignment
  • Choose the line height of the text
  • Select the theme for the column
  • Set borders and border thickness

Buttons has the purpose of linking the email with either pages, product groups or products.

Figure 6.1 The button column

The button column can be configured for pages, products or system commands:

Figure 6.2 The settings of the button column

The button column editor lets you:

  • Write a link label
  • Choose the link type and where the button should link to. Depending on what you choose here, new section will appear
    • ​Page - A field for at page link will appear
    • Product group - A box for product group selection will appear 
    • Product - A box for product selection will appear
    • System command - A dropdown for system commands will appear. This could be used for verifying an account or resetting a password

For styling options, you can:

  • Set the padding for the column
  • Choose the alignment of the button
  • Select the theme
  • Set borders and the border thickness

The heading is a simple column, which lets you design a heading.

Figure 7.1 The heading column

The heading column comes with the following configuration options:

Figure 7.2 The settings of the heading column

In the column settings you can:

  • Write a title
  • Set the font style, alignment, and size
  • Select a line height for the heading

For styling options, you can:

  • Choose a padding for the column
  • Select a theme
  • Choose borders and the thickness of these

With the icon column you can display different icons, which can work as only images or as links to internal or external pages. The icon supports different filetypes, however some mail services support more filetypes than others. If you want a full list of which services support what files, you can search the file types at www.caniemail.com.

Figure 8.1 The icon column

The icon column has two kinds of settings pages, the general setting page, and the setting page of each icon item.

The general icon column settings are:

Figure 8.2 The settings of the icon column

On the column settings page you can:

  • Write a title of the column
  • Manage the icon collection (create or delete icon items)
  • Choose the icon size, spacing and alignment

For styling options, you can:

  • Set the padding of the column
  • Choose a theme for the column
  • Choose borders and the border thickness

As mentioned, this column also has a settings page for each individual icon item:

Figure 8.3 The settings of the icon list item

On the icon type settings, you can:

  • Choose the icon – as mentioned not all file types are supported by all email services, find out which supports which here
  • Write a title for the icon – the title will not be visible in front end, but is for you to easier locate it in the icon collection on the general settings page
  • Choose if and where the icon will link to – if it is external write the URL, if it is internal use the blue icon on the right

The image column is used to display an image. It can also be linked to a page, product group or a specific product.

Figure 10.1 The image column

The image column comes with the following configuration options:

Figure 10.2 The settings of the image column

Here, you can:

  • Write a title for the column
  • Choose an image
  • Write Image alt text
  • Choose the Image aspect ratio
  • Choose a link type and where to link to

For styling options, you can:

  • Set the padding for the column

The menu column is like the page content column navigation. The column is a collection of links that can be placed either vertically or horizontally.

Figure 11.1 The menu column

When using the menu column, you have the following settings:

Figure 11.2 The settings of the menu column

In the settings you can:

  • Write a title for the column
  • Manage the menu items (create or delete menu items)
  • Choose the font size
  • Set the item spacing
  • Choose if the layout should be horizontal or vertical
  • Set the alignment of the menu items

For styling options, you can:

  • Set the padding of the column
  • Choose the theme for the column
  • Choose borders and the border thickness

The product catalog column lets you display specific products to the customer in the email. The products are linked, meaning that the customer will be brought to the product details page by clicking it. That way you can combine the message of the email with a product.

Figure 12.1 The product catalog column

The product catalog column has the following configuration options:

Figure 12.2 The settings of the product catalog column

You can:

  • Write a title for the column – this will not be displayed
  • Choose which product(s) should be displayed on the column
  • Set the Image aspect ratio
  • Select the grid layout – choose if it should be 1, 2 or 3 columns of products
  • Choose to show/hide the product price and/or the product number

For styling options, you have the following options:

  • Set the padding for the column

A spacer is a simple column made to help create the right design for your emails. Sometimes you want a certain distance between content columns in your emails – the spacer is the solution for that.

Figure 13.1 The spacer column

The spacer column does not have any configuration options other than one:

Figure 13.2 The settings of the spacer column

You can:

  • Set the height of the spacer

You do not have any styling options for the spacer. If you want the spacer to have a color, like the one in the example above, you will have to change the theme on the row.

The text column is the where the actual message of the email is written.

Figure 14.1 The text column

The text column has some configuration:

Figure 14.2 The settings of the text column

In the text column settings you can:

  • Write a title for the column – this will not be displayed
  • Write the text for the column
  • Set the alignment
  • Choose the line height

For styling options, you can:

  • Choose the padding for the column
  • Select a theme for the column
  • Select borders and border thickness

This column should often be used at the bottom of the emails. It is a link for the receiver to unsubscribe the emails.

Figure 15.1 The unsubscribe column

In the settings you have a few options:

Figure 15.2 The settings of the unsubscribe column

You can:

  • Write a link text
  • Choose the alignment
  • Set a line height
  • Choose to reduce the font size or not
  • Write a leading text – this will be displayed before the unsubscribe link

For styling options, you can:

  • Choose the padding for the column
  • Select a theme for the column
  • Choose borders and border thickness

The view in browser column is, as the name suggest, giving the readers an opportunity to open the email in a browser instead.

Figure 16.1 The View in Browser column

The column has the following configuration

Figure 16.2 The settings of the View in Browser column

In the settings you can:

  • Write a link text
  • Choose the alignment
  • Set a line height
  • Choose to reduce the font size or not
  • Write a leading text – this will be displayed before the unsubscribe link

For styling options, you can:

  • Choose the padding for the column
  • Select a theme for the column
  • Choose borders and border thickness

System emails are built using our already existing columns for email. This way building system emails for welcoming new users, order confirmation, or receipts will be just as easy as building regular emails. Meaning you can build system emails visually and easily implement your own custom email elements.

The main different feature in system emails is the use of template tags. This helps generalize the emails. Below will follow an example of the setup of an system emails, how it can be used and a table of some of the different template tags.

System emails are mainly used instead of existing templates. If we keep the verification email example above, this should be linked in the in the Extranet.

  1. Locate the create account page. In the default Swift solution this is found at:
    Navigation/Utilities/Sign in/Create account. On this page click the Extranet app
  2. Enter the app settings of the Extranet app on this page
  3. In the User Confirmation E-mail section toggle “Page” as the redirection on user notification.
    This lets you choose the designated email.

This is pretty much the process for all other system emails. For user creation scenarios this includes Admin Notification Emails and User Notification Emails.

System emails can also be used for users and marketing.  

Beneath we've listed the columns typically used for system emails. You can still use the "normal" email columns to style system emails, but the columns listed here are used to create unique emails as they e.g. can use our template tags.  

It is a pretty short list, as we've mainly added features to already existing columns. As of now, the only "system email only" is the Back in stock notification column. Other columns that contains system email features are:

The Back In Stock Notification email column is used when a user has subscribed for a notification when a product is back in stock. Meaning this email column is tightly coupled with the product component column

In the settings you can:

You can:

  • Give the column a title
  • Set the image aspect ratio
  • Choose the grid layout
  • Show/Hide the product number

In the styling section you can:

  • Set the padding for the column
  • Choose the text alignment
  • Choose the theme

This column do need some app configuration as well. To do this enter the app part of the settings.

  1. Choose the Product Catalog (eCom) app in the ECOMMERCE section
  2. Choose to show "Products (context)" 
  3. In the Templates section:
    1. In the List dropdown choose "ProductList.cshtml" 
    2. In all other dropdowns choose "Nothing selected"

Now the app setup is done. For the notification system to work properly you have to configure the marketing part. We've documented that here

Template tags are the main feature for making the system emails as generic as possible. As the tags are often used in a simple text column we use curly brackets to differentiate. To call a template tag, this could be the username, you type:

{{UserManagement:User.Name}}

Below will follow a table with some of the template tags to show how to use them:

Output Template tag
Username {{UserManagement:User.Name}}
User email {{UserManagement:User.Email}}
Password recovery link {{DWPasswordRecoveryUrl}}
Shipping method of an order {{Ecom:Order.ShippingMethod}}

 

If you want to know more about template tags you can read our documentation here.

This example will be based on the verification email sent to newly created users, which is shown just above. All the columns used have been documented in the content column section.

In the same way as all other emails, this email uses a predesigned header and footer, meaning the only thing to design is the actual content of the email.

Instead of walking through every row and column used in this verification email we will highlight the features important for system emails. Generally speaking, as this is a system email, we’ve kept it rather simple and used only text-based columns.

One of the obvious things to show is the template tags in the actual message part of the email. This isn’t some fancy new column but just a text column using the template tags((1) on Figure 23.1). Template tags will be explained below – alongside a table containing some of the different template tags. For this walkthrough we will highlight that it is just an ordinary text column used. Same goes for the link containing text column below the button (2). 

Figure 23.1 System tags in a text column

Another neat feature for system emails is buttons. In this example it is used for verifying an email. This button uses the “System command” Link type. In the System command dropdown “Verify email” is chosen (Figure 24.1). Again, this is just using an ordinary column and not some “Special-System-Email-Button-Column”.

Figure 24.1 The button column