Email Configurations

💌 Learn how to compose and send emails using Clevero's email composer tool.

The Email Composer tool allows users to send emails directly from a record entry within the system. To configure this feature, learn the steps outlined below.

1. Where to Put the Configuration?

Watch the guided demo below to access the email configuration.

You can also follow the same steps using the written guide below.

  1. Go to "Settings" > "System Settings".
  2. Click on "Records".
  3. Do one of the following:
    1. Select an existing record, then choose Properties from the side menu. Add the email configuration in the Settings section.
    2. Create a new record, then add the email configuration in the Settings section.

2. Email Configurations

This section provides an example configuration for setting up the ability to send emails.

2.1. sendEmail

The sendEmail property is a mandatory boolean that indicates whether the system can send emails.

2.2. emailTo

The emailTo property is an optional object used to determine the email's recipient. It includes the following properties:

Properties

Data Type

Mandatory/Optional

Details

source

string

mandatory

The source of the recipient. It can be one of these:

  • field: It means the recipient's email address will be sourced directly from a specific field within the system.
  • linked-field: It implies that the recipient's email address will be sourced from a linked field. It will look for an associated field that contains the email address to be used as the recipient.

value

number

mandatory

Represents the ID of the field to source the email from if the source is set to field.

Otherwise, it should be the internal ID of the Select/Multiselect field from which the email should be sourced.

nestedValue

string

optional

If the source is set to linked-field, this string represents the internal ID of the email field from which the email should be sourced.

If this property is omitted, the default value is set to "email," indicating that the system will attempt to source the email address with the internal ID "email".

2.3. sourceEmailsFrom

The sourceEmailsFrom property is an optional array of objects that enhances the suggestion feature within the email tool. This feature automatically suggests email addresses sourced from the specified entries.

It includes the following properties:

PropertiesData TypeMandatory/OptionalDetails
recordInternalIdstringmandatoryThe internal ID of the record from which you want to source entries.
filterSubjectsarray of internalIdsmandatoryAn array of internal IDs representing conditions to filter the entries and determine which email addresses should be included in the suggestion list.
emailFieldInternalIdoptionalThe internal ID of the email field from which you want to retrieve email addresses.If not specified, it defaults to a predetermined email field.
nameFieldInternalIdoptionalThe internal ID of the name field from which you want to retrieve corresponding names for the email addresses.If not specified, it defaults to a predetermined name field.
2.4. associateEmailsFrom

The associateEmailsFrom property is an optional array of objects used to import emails from associated entries. It allows you to link and retrieve email from the specified associated entries.

It includes the following properties:

PropertiesData TypeMandatory/OptionalDetails
recordInternalIdstringmandatoryThe internal ID of the record from which you want to source the associated entries.
emailFieldInternalIdstringoptionalThe internal ID of the email field from which you want to retrieve email addresses.
nameFieldInternalIdstringmandatoryThe internal ID of the associate field is used to link the parent entry with the associated entries.

3. Configuration Example

The provided configuration example demonstrates how to configure the email functionality within the system.

"emailFromRecordEntry": {
    "sendEmail": true,
    "associateEmailsFrom" : [
        {
   				"recordInternalId":"tda-timesheets",
   				"emailFieldInternalId":"employee",
   				"linkedFieldInternalId":"employee"
				}
    ],
    "sourceEmailsFrom": [
        {
            "recordInternalId": "employees",
            "filterSubjects": ["email","name"],
            "emailFieldInternalId":"email",
            "nameFieldInternalId":"name"
        },
        {
            "recordInternalId": "neighbourhood-house-contacts",
            "filterSubjects": ["email","full-name"],
            "emailFieldInternalId":"email",
            "nameFieldInternalId":"full-name"
        }
    ],
    "emailTo": {
        "source": "field",
        "value": 7693
    }
	]
}

Let's break down the configuration properties:

3.1. Enabling Emails

This line sets the sendEmail property to true, indicating that the system is enabled to send emails.

"sendEmail": true,

This will enable the email functionality.

3.2. Associate Email

The associateEmailsFrom property import emails from associated entries. In this example:

  • recordInternalId it has two associated records (neighbourhood-house-attendances & neighbourhood-house-transactions) which are specified with their internal ID.
  • emailFieldInternalId specifies the internal ID of the field within each record.
  • linkedFieldInternalId specifies the internal ID of the field that links the parent entry to associated entries.
{
   "recordInternalId":"tda-timesheets",
   "emailFieldInternalId":"employee",
   "linkedFieldInternalId":"employee"
}

The imported email will appear in the "BCC" field.

3.3. Source Email

The sourceEmailsFrom property offers email addresses from the specified entries. In this example:

  • recordInternalId it has two specified records (employees & neighbourhood-house-contacts) which are specified with their internal ID.
  • filterSubjects is an array of internal IDs used as conditions to filter the entries ["emailFieldInternalId", "nameFieldInternalId"].
  • emailFieldInternalId specifies the internal ID of the email field within the record.
  • nameFieldInternalId specifies the internal ID of the name field within the record.
{
    "recordInternalId": "employees",
    "filterSubjects": ["email","name"],
    "emailFieldInternalId":"email",
    "nameFieldInternalId":"name"
},
{
    "recordInternalId": "neighbourhood-house-contacts",
    "filterSubjects": ["email","full-name"],
    "emailFieldInternalId":"email",
    "nameFieldInternalId":"full-name"
}

The emails from a specified record will be displayed as a dropdown menu in the "To" field.

3.4. Recipients

The emailTo property specifies the source of the recipient's email address. In this example:

  • The source is set to "field," indicating that the recipient's email address will be sourced from a specific field.
  • The value is set to 12777, representing the ID of the field from which the recipient email address will be sourced.
],
"emailTo": {
    "source": "field",
    "value": 13930
}

When opening the email for the first time, the "To" field will automatically populate with the email address sourced from the specified field.


📌 Need Help?

If you require assistance or encounter any issues, please don't hesitate to contact us for further support.