How to use the send email block

You can add mailer blocks inside your forms to trigger mailings to yourself or your respondents. And even use form data inside those emails.

The concept

The send email block enables you to send emails from within your forms. You can use them for 'simple' notifications and confirmations, but mailer blocks are completely flexible, in terms of who receives them, what's the content and when they are sent.

When is the mail sent?

Keep in mind the email only gets sent at the moment the respondent has passed the mailer block while filling out the form. So if you place the mailer block inside a certain branch, the email block only gets triggered when a respondent enters that specific branch. Your respondent doesn't see when a mailer block gets triggered.

It's also good to know the email only gets sent after completion of the form. So it's not sent immediately when someone passes a mailer block, but only at the end of the form.

Adding a send email block

The send email block is available as a question type by clicking the Question type dropdown after you've added a new block. You can add it in any given position and in an unlimited amount inside your forms.

Send email blocks are available from the Question type menu.

Determine recipient address

You can email yourself, or the respondent (if you know the email address of the respondent):

Example of using an answer as a recipient.
  • Select Fixed recipient address - You will use this setting to mail to the same person each time a form is completed. For example to get notified when someone completes the form. Just enter an email address you'd like to receive the mail on;
  • Select from Available email addresses - You can also email to an email address that your respondent enters inside your form. To use this feature, please provide a question block that can contain an email address. In Tripetto this can be a block with question type 'Email address', or a 'Hidden field' block. Make sure this block is entered before the mailer block.
    After you've set up a block that contains the email address, you can select this particular block inside the mailer block as a recipient. The form will now use the given email address as the recipient address.

Determine email content

Next step you can enter the email content:

  • Enter Subject - The subject line of the email;
  • Enter Message - The actual content of the email message.

Use form data in your email

Example of selecting a piping value in an email message.

You can use certain given answers from each entry inside your mails using piping logic. These piping values are available in both the subject and the message of an email. In that way you can for example address your recipient personally in the salutation of the email if you asked for the name in your form.

To do so, you can use piping values by typing the @ sign and then select the desired question you want to show the answer of. More information can be found in this article about piping logic.

You can also append all form data at once to the email. See the Options below for more information on that.

Determine sender address

You can enter a Sender address that will be used as a reply-to address in your email message (all mails will always be sent by no-reply@tripetto.com).

Useful for example when you send an email from within the form to the respondent and the respondent wants to reply to that email. The reply message will then be addressed to the sender address you entered.

To do so enable the Sender feature and then select the sender address:

  • Select Fixed sender address - You will use this setting to set a sender address that's the same for every mail sent. For example the support email address of your company so respondents can mail the support department afterwards;
  • Select from Available email addresses - You can also email on behalf of an email address that your respondent enters inside your form. To use this feature, please provide a question block that can contain an email address. In Tripetto this can be a block with question type 'Email address', or a 'Hidden field' block. Make sure this block is entered before the mailer block.
    After you've set up a block that contains the email address, you can select this particular block inside the mailer block as a sender address. The form will now use the given email address as the sender address (reply-to).

Options

The following advanced options are available for the mailer block:

Advanced options of the mailer block.
  • Form data

    You can choose to Append all form data to the message. This will append all exportable data in the dataset of the form to the message. Useful, for example, if you want to send a copy of the form data to the respondent.

  • Exportability

    Unlike other question blocks the data of the mailer block (recipient address, subject, message and optionally sender address) doesn't get saved to the dataset of the form entries by default.

    If you wish to include any of this mailer data in your dataset, you can overrule the default setting by enabling the Exportability feature and activate the desired include option(s):

    • Include recipient address in the dataset;
    • Include subject in the dataset;
    • Include message in the dataset;
    • Include sender address in the dataset (only available when the sender address is enabled).


Also read our blog

We also wrote a blog post with some more background information, use cases and working examples of mailer blocks.

Use these helplines if you have any questions, problems or requests