Reusable Components

The Components feature allows you to build modular, reusable elements such as headers and footers.

By creating these components once, you can easily add them into any email you create, saving time and effort.

How to create a component (except PDF)

To create a component, go to Templates -> Fyno from the navigation.

1Click ‘Components’ and it opens up the Components page.
2Click ‘Create’. You will see a popup as shown below
3Give a unique name for your component and choose a component type. In this example, I am creating a Header component called ‘Myntra-Header’
4

We support 6 different type of components now.

  • Header
  • Footer
  • Banner
  • Socials (Any social media icons like Twitter, LinkedIn, FB etc)
  • Paragraph
  • PDF
5Once you click ‘Submit’, it opens the Email editor options. You can choose either ‘Stripo’ or ‘HTML Editor’.
6To create a Header, you can drag & drop Image block into the editor and brand logo.
7The header will look as shown below.
8Click ‘Save’ to create a test version of the component or click ‘Go live’ to create a live version.
9Once a component is successfully created, you can access it in Components page.

How to use a Header Component in Email template

For example, to add a Header in email editor, you need to follow the below steps.

1Drag and drop a structure into the email editor. Since its Header, make sure the block is at the top of the editor.
2Drag and drop a text block into the email editor
3In the text block, copy the component you have created from the Components section below the placeholders.
4Paste the component in the text block you have added as shown below.
5You can click Preview to see how the Header looks.
6Similarly you can add any components like Footer, Socials, Banner, Paragraphs etc.
7You can also use our Handlebars to add components based on any condition. For example, if you want to add a Header based on a brand name (as every brand will have its own logo), then you can add a condition to check brand name and add Header based on that.
8In the below example, if the brand equals Myntra, it will add the Header , ‘Myntra_Header’ otherwise it will add the default Fyno Header.

How to create a PDF component

To create a component, go to Templates -> Fyno from the navigation.

1Click ‘Components’ and it opens up the Components page.
2Click ‘Create’. You will see a popup as shown below
3Give a unique name for your component and choose a component type. In this example, I am creating a PDF component called ‘pdf_component’
4

We support 6 different type of components now.

  • Header
  • Footer
  • Banner
  • Socials (Any social media icons like Twitter, LinkedIn, FB etc)
  • Paragraph
  • PDF
5Once you click ‘Submit’, it opens the HTML editor as shown.
6To create a pdf component, you can copy and paste HTML code into the editor.
7

You can configure the pdf file with the below parameters

  • File Name - The component name will be used as default file name. You can change it either add a file name manually or add a placeholder
  • Layout - You can choose either Portrait or Landscape. Portrait is the default option.
  • Paper Size - You can choose a paper size from dropdown. A4 is the default size.
  • Margins - You can add margins (Top, Bottom, Left, Right) if you want to add any margins to the pdf file.
  • Protect with Password - You can check this box to enable Password protection for your pdf file. You can either manually enter a password or add a placeholder
  • Include Header
  • Include Footer
8Click ‘Save and Preview PDF’ to see the preview.
9Click ‘Save’ to create a test version of the component or click ‘Go live’ to create a live version.
10Once a pdf component is successfully created, you can access it in Components page.

How to use a PDF Component in Email template

For example, to add a PDF component in email editor, you need to follow the below steps.

1Click the attachment icon which will show the options as shown below
2Click ‘Select from component’ option.
3Select a pdf component from the dropdown.You can add more pdf files by clicking ‘Add files’.
4You can override the filename by selecting the checkbox. Enter a filename manually or add a placeholder.
5Once you have added all the attachments, you will see it as shown below in Email editor.