Table of Contents

Emails

DynamicWeb's email concept allows you to customize a variety of emails using the Visual Editor. This concept is centered around linking headers and footers to emails, facilitating consistent design themes across different emails.

This article will explain how this concept works and guide you through the manual setup process. To aid in creating footers, headers, and emails, we have designed a variety of content columns, which are presented and explained at the end of this article, along with email examples created in Swift. Emails_01

The Swift Email concept

The concept is based on three levels:

  1. Email folder(1): Helps keep your emails sorted and organized. This folder can only contain email-related pages due to certain restrictions
  2. Email settings page(2). These 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.
  3. Footers, Headers, and Emails(3)

Emails_02

In the example below, 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 below, as this hopefully will help you understand how the concept works. Emails_03

Manual setup guide

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 to the right of Navigation in the content tree
  2. Create a New page and choose the Emails folder
  3. Head to the page settings by pressing the circular button is the bottom right corner
  4. Give the page a **title' i.e. "Emails"
  5. Head to the Publication tab and make it hidden in menu
  6. Hit Save and Close

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 a New page in the Emails folder
  2. Choose Emails settings page
  3. Head to the page settings by pressing the circular button is the bottom right corner
  4. Give the page the title: Swift Email Layout
  5. Head to the Publication tab and make it hidden in menu
  6. Hit Save and close

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. Head to the page settings by pressing the circular button is the bottom right corner
  4. Name it Newsletter header - light
  5. Head to the Publication tab and make it Published
  6. Head to the Layout tab. Under Select template, select **Swift_Email.cshtml
  7. Hit Save and close

Now do the same steps to create a footer:

  1. Create a subpage to the Swift Email Layout page
  2. Choose an Email footer as the subpage
  3. Head to the page settings by pressing the circular button is the bottom right corner
  4. Name it Newsletter Footer - Dark
  5. Head to the Publication tab and make it Published
  6. Head to the Layout tab. Under Select template, select **Swift_Email.cshtml
  7. 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 Email settings page in the content tree, and head to the page settings by clicking the circular button in the bottom right corner
  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.

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.

Email Content Columns

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

Article

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. Article_01 The article column comes with the following configuration options: Article_02 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 it 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

Button

Buttons has the purpose of linking the email with either pages, product groups or products. Button_01 The button column can be configured for pages, products or system commands: Button_02 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 a page link will appear
    • Product group - A box for 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

Heading

The heading is a simple column, which lets you design a heading. Heading_01 The heading column comes with the following configuration options: Heading_02 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

Icon

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. Icon_01 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: Icon_02 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: Icon_03 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

Image

The image column is used to display an image. It can also be linked to a page, product group or a specific product. Image_01 The image column comes with the following configuration options: Image_02 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. Menu_01 When using the menu column, you have the following settings: Menu_02 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

Product Catalog

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.

ProductCatalog_01

The product catalog column has the following configuration options:

ProductCatalog_02

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.
  • Choose how the text should align.
  • Select the theme.

Spacer

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.

Spacer_01

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

Spacer_02

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.

Text

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

Text_01

The text column has some configuration:

Text_02

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. UnsubscribeLink_01 In the settings you have a few options: UnsubscribeLink_02

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

View in Browser

The view in browser column is, as the name suggest, giving the readers an opportunity to open the email in a browser instead. ViewInBrowser_01 The column has the following configuration: ViewInBrowser_02

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

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. SystemEmails_01

How to use system emails

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. HowToUseSystemEmails_01

  1. Locate the create account page. In the default Swift solution, you can find this by navigating to: Navigation > Utilities > Sign in > Create account. Press Edit paragraph by clicking the pencil icon for the column
  2. Enter the App tab
  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.

Columns for System Emails

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:

Back in Stock Notification

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. BackInStockNotification_01 In the settings you can: BackInStockNotification_02

  • 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:
    • In the List dropdown choose "ProductList.cshtml"
    • 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 email part. We've documented that here.

Template Tags

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.

Email verification example

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.

Example - Text Column

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). 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). TextColumn_01

Example - Button

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. Again, this is just using an ordinary column and not some “Special-System-Email-Button-Column”. ExampleButton_01

To top