Ratufa Documentation

Email Notifications

When a new form submission is received successfully, you can get an email notification from Ratufa. This is quite convenient in cases where you want to respond to the form submission immediately.

To add an email notification to your form, go to the settings page of the form. Then select Email Notifications. Press the "Add" button to add a new notification template.

The email template uses Mustache templating. See templating reference for the list of all the custom fields available.

Examples

A new form submission was received for contact form:
{{allFields}}

This simple template will send an email with all the field values received in the form.

The template {{allFields}} creates a table of all the fields in the form.

If you want to pick individual fields from the form, you can update the template like so:

A new form submission was received from {{fd.FullName}} for contact form:
{{allFields}}

Where FullName is a field from your form.

Use Fields in Subject or Body

You can use template fields Subject and the Body of the form. In order to get the unique submission ID of the form in the subject line, for example:

New Form submission ID {{ID}}

Suppose the form has a field email Then you can get that field in the subject line using this line:

Form submission ID {{ID}} from email {{fd.email}}

Reply-to

This field is convenient when you reply to the email notification. The email client will set the To field of the email from this field.

Set this to the user's email address. Suppose you have an email field in the form with name 'email' then setting this field as {{fd.email}} makes it easy to reply to the email notification.

Attach PDF file

If this option is enabled, Ratufa will export the form submission to a PDF file and then attach that file to the email. The email notification will have an additional PDF file attachment.

Attach file uploads

If your form has file upload fields, enable this option to attach the file uploads to the email. Note that Ratufa will attach a maximum of 5MB of files to the email. So if the file uploads exceed this limit, the email will not contain some of the files. You can always access the uploaded files from Ratufa's records view.