Email Templates

Fyno's email templates allow you to create some exciting templates, be it for marketing or transactional communication.

πŸ“˜

Don't forget to add a Subject for your email before getting started!

You can also add placeholders in the subject line, if you want to personalise it.

On Clicking Email, you can select one of the two editors that Fyno has:

  1. Stripo
  2. Unlayer

Fyno recommends using the Stripo editor due to the ease of use as it supports AMP options giving you a wonderful and responsive email experience for your customers.

  1. You can create your own email template from scratch using either the email editor tool
  2. Add anything from Content or Blocks and edit the entire email format through the Body tabs on the left Navigation panel

    πŸ‘

    Blocks can be saved!

    On creating a block that you will use repeatedly in other templates, you can save it by clicking on the save button next to the block. Give it a name and a tag and you are good to go!.

    This will then be available under the "Blocks" section for you to use.

  3. Preview your created template by clicking on the "eye" icon in the bottom right corner. You can also see how your template looks on different devices.
  4. Save your design by clicking on the Save Design button.
  5. Clicking on Close Editor will allow you to discard the draft.
  6. Save and create different versions of the templates by hitting Save which will be Test versions. Use Save & Promote when you are ready to move your template into the "Live" version.

How to add attachments

You can add static as well as dynamic attachments to emails

πŸ“˜

There is no limit to the number of attachments. However, maximum size of the attachment(s) should be 10MB.

On clicking on the attach button (highlighted below) on the to right corner of the either Email editor, you will see:

Upload Files: Allows you to attach files from the system. This then stays as a static attachment in the body of the email and is sent along with the email as an attachment every time it's triggered.

Dynamic Placeholders: Allows you to include dynamic files within the email, when the notification event is triggered. You can use placeholders to specify the:

  • Filename
  • File type
  • Content - Convert the file into base64 and add the content here.

For example, you want Invoice.pdf as your attachment, Filename will be Invoice, File type will be pdf. Convert the pdf to base64 and copy paste into Content.

❗️

You cannot use only numeric values as placeholder keys!

How to add cc and bcc

Sample code with cc and bcc details. You can add any no of emails to cc and bcc.

curl -X POST 'https://api.fyno.io/v1/{WorkspaceId}/test/event' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
    "event": "ReleaseNote",
    "to": {
        "email": "[email protected]"
    },
    "data": {
        "name": "Rahul",
        "key": "value"
    },
    "channel": {
        "email": {
            "append": {
                "cc": [
                    {
                        "name": "name1",
                        "email": "[email protected]"
                    }
                ],
             "bcc": [
                    {
                        "name": "name2",
                        "email": "[email protected]"
                    }
                ]
            }
        }
    }
}'

In the sent logs, you'll find the recipient details (destination, cc, and bcc) in the Summary tab.

For the above scenario, the sent logs will display the following information.