Email templates
Introduction
Every survey has its own email texts, one set for each survey language. The email templates are used to send personalized invitations, reminders, confirmations, and registration emails to the participants in your participant list. You can also edit the basic and detailed admin notifications that are sent to you or your team for each new response. Each template comes with a standard text. Placeholders in curly brackets, such as {FIRSTNAME}, are replaced for each recipient.
To open the email templates:
- In the new editor: click Share in the top bar and then Participant lists. On the Survey participants page, click Invite & remind and then Edit email templates, or click Email templates in the survey menu on the left.
- In the classic editor: open the Settings tab on the left and click Email templates under Survey menu.

Email templates panel
The email templates panel:
- Choose the language (1) and the template (2).
- Change the subject (3) and the text (4). To insert a placeholder, click Placeholder fields, the
{ }button in the toolbar, choose the field and click OK. - Click Save (7).
Under Actions (5), Validate ExpressionScript checks the placeholders and expressions in the template, and Reset this template brings back the standard text. Add file (6) attaches a file to this email.
The screenshot shows the inline HTML editor. Click the </> button in the toolbar to edit the HTML source. To change the editor mode, go to your account settings.
Six email templates can be edited, for participants and for admins:
Invitation
The invitation is sent with Send email invitation to all participants in the participant list who have not received an invitation yet.
From the email templates panel, you can edit the message sent to the participants. To check which placeholders can be used, see Email placeholders. You can also use the ExpressionScript to further customize your invitation.
{SURVEYURL} in the invitation and the reminder. It is the personal link of each participant, with their access code.Rules for invitations and reminders on LimeSurvey Cloud
- Every invitation and reminder must contain the survey link, for example
{SURVEYURL}. Emails without it are not sent ("Your email must contain an invitation link to the survey."). - On the Free and Basic plans, invitations and reminders may contain only links to your survey. Emails with other links are not sent ("Using the FREE & BASIC plan only links to your survey are allowed."). Email addresses (mailto links) are allowed.
See Rules for invitations and reminders on LimeSurvey Cloud.
Reminder
The reminder is sent with Send email reminder to remind participants to answer the survey.
You can edit the reminder in the email templates panel. To check which placeholders can be used, see Email placeholders. The ExpressionScript can help you customize the text of this email.
Confirmation
When a participant from the participant list submits the survey, a confirmation email is sent to their email address. You can switch this off with Send confirmation emails in the Participant settings.
Click the Confirmation tab if you want to edit the email template. Check the email placeholders to see which ones can be used in this type of email. You may also use the ExpressionScript to customize your email.
Registration
With the access mode Link with access code, only people with a valid access code from the participant list can take the survey. If you allow people to register for your survey (Allow public registration), a person who submits their name and email address is added to your participant list. LimeSurvey then sends them the registration email, which contains their personal link with the access code.
Click the Registration tab to edit this email. See which email placeholders can be used in the text. The ExpressionScript can provide further customization.
Basic & detailed admin notifications
To get admin notifications, open the Notifications & data settings of the survey and enter an email address in Send basic admin notification email to and another one (or the same) in Send detailed admin notification email to. One email is sent for each new response.
By default, the only difference between the two is the placeholder {ANSWERTABLE} in the detailed admin notification. It shows the submitted answers, so the person who receives this email doesn't have to log in to LimeSurvey to check them.
However, by using the ExpressionScript and the email placeholders you can customize these two email templates.
Email templates fields
Each email template contains:
- The subject of the email: The subject of the email or batch of emails you want to send;
- The email body: The text of the email. It may contain text, images, and email placeholders. The ExpressionScript can also be used to further customize the message;
- Actions: Two actions are available:
- Validate ExpressionScript: Checks the placeholders and expressions of the saved email. We highly recommend using it before sending a batch of emails. In the example below, a placeholder has a typo, so it is shown in red.
- Reset this template: Replaces the text of the template with the standard text;

Email placeholders
The email templates use placeholders in the subject and the body. When the emails are sent, LimeSurvey replaces them with the data of each participant in your participant list (e.g., email, first name, last name, access code), so each participant gets their own email.
The following placeholders can be used in all email templates. When you send the emails, they are replaced with data from your survey:
| {ADMINEMAIL} | Email of the survey administrator |
| {ADMINNAME} | Name of the survey administrator |
| {SURVEYNAME} | Title of your survey |
| {SURVEYDESCRIPTION} | Description of your survey |
| {SID} | Survey ID |
| {EXPIRY} | Expiration date of the survey |
The following placeholders can be used in the invitation and reminder templates (subject and/or body) and are replaced when the emails are sent:
| {EMAIL} | Email of the recipient |
| {FIRSTNAME} | First Name |
| {LASTNAME} | Last Name |
| {SURVEYURL} | The personal URL to start the survey, with the access code - if you are sending HTML emails, a full link will be displayed to the participant |
| @@SURVEYURL@@ | The URL to start the survey - this is the barebone link. Use this if you want to integrate the link in your custom HTML elements somewhere |
| {SURVEYIDURL} | The URL of the survey based on the survey ID, without the access code |
| {OPTOUTURL} | The URL to stop further emails for this survey - a full link will be displayed in the HTML version of the email template |
| {OPTINURL} | If a participant opted out and wants to receive emails for this survey again, they click the opt-in URL. |
| {GLOBALOPTOUTURL} | The URL for a participant to opt out of the central participant database for this site - a full link will be displayed in the HTML version of the email template |
| {GLOBALOPTINURL} | The URL for a participant to opt in to the central participant database again |
| {TOKEN} | The access code to the survey |
| {USESLEFT} | The number of uses left for the access code |
| {VALIDFROM} | The date the access code is valid from |
| {VALIDUNTIL} | The date the access code is valid until |
| {EMAILSTATUS} | Used for skipping emails on email sending. Default email status is "OK". |
| {LANGUAGE} | Used to define the language to be used for emails and survey URL when using multilingual surveys |
| {SENT} | Invitation send date in ISO8601 format with time (Y-m-d H:i:s in PHP) |
| {REMINDERSENT } | Reminder send date in ISO8601 format with time (Y-m-d H:i:s in PHP) |
| {REMINDERCOUNT} | Number of reminders already sent |
| {COMPLETED } | Survey completion date |
| {TID} | Internal ID in the participant list |
| {ATTRIBUTE_1} | Attribute 1 |
| {ATTRIBUTE_2} | Attribute 2 (...and so on for more attribute fields) |
If your survey is not anonymous, the following placeholders can be used to add participant data to the survey text elements (e.g., survey description, welcome message, end message).
| {TOKEN:EMAIL} | Displays the email of the participant from the participant list |
| {TOKEN:FIRSTNAME} | Displays the first name of the participant from the participant list |
| {TOKEN:LASTNAME} | Displays the last name of the participant from the participant list |
| {TOKEN} | Displays the access code of the participant from the participant list |
| {TOKEN:ATTRIBUTE_1} | Displays "Attribute 1" of the participant from the participant list |
| {TOKEN:ATTRIBUTE_2} | Displays "Attribute 2" of the participant from the participant list (and so on for more attribute fields) |
These email placeholders can also be used in the confirmation and admin notification email templates.
Some placeholders can be used only in the admin notification templates. Please note that one email per response is sent to the email address of the administrator!
The placeholders that can be used only in the admin notification templates are:
| {VIEWRESPONSEURL} | Displays a URL that opens the response of the participant |
| {EDITRESPONSEURL} | Displays a URL that opens a LimeSurvey page where you can edit the response of the participant |
| {STATISTICSURL} | Click this URL to access the statistics of the survey |
| {ANSWERTABLE} | Displays the submitted answers of the participant in the admin notification email. This way, you don't need to log in to LimeSurvey to check the answers (as with the {VIEWRESPONSEURL} placeholder). |
- If your survey uses anonymized responses, placeholders with participant data do not work in the notification email templates.
- You can use ExpressionScript to use expressions for tailoring an email. Please have a look at the ExpressionScript how-tos for an example.
- Also have a look at the examples on using Information from survey participants table.
Participant opt-out
When you use the {OPTOUTURL} placeholder in your invitation or reminder, your participants can opt out of this particular survey by clicking the related URL in the email, so they don't get reminders. A participant who opts out gets the email status "OptOut" in the participant list.
Barebone URL
URL placeholders have a corresponding barebone URL. For example, besides @@SURVEYURL@@ you can use @@OPTOUTURL@@, @@OPTINURL@@ …
Using the replacement function
Barebone URLs let you use your own link text instead of the long survey URL.
The example below uses a plain link to the survey instead of a long URL:
1) First, open the email templates panel and choose Invitation.
2) Write the text you want to appear as a link to start the survey.
3) Then select that text and click the Link button in the toolbar.
4) Set Protocol to <other>, enter the placeholder for the plain link @@SURVEYURL@@ as URL and click OK.
Now, when you send out your invitation emails, the link to start the survey is shown with your text.
Email attachments
File actions
When you click Add file, the following window asks you to choose the file you want to send with the email:
Attachments are added below the email text, separately for each email template. Please note that email attachments are uploaded for each survey separately.
You can also upload a file from your computer by clicking the Upload button and then selecting the file you want to attach to the email template.
Double-click the file and it is shown in the attachments table, below the Add file button:
To keep the attachment, click the Save button in the upper-right part of the window.
To decide whether an attachment is sent to a particular participant, you can add a relevance equation to each attachment: click the pencil button in the Relevance column.
All functions supported by the ExpressionScript can be used, as well as participant attributes if the survey has a participant list.
With notification or confirmation templates, it is also possible to use question codes used in the survey.
If you want to delete a file, click the red trash button in the Action column and save the changes.
- When a file can not be found on the file system, the email is sent without the attachment. When you send invitations or reminders with missing attachments, the sending page offers the option Ignore missing attachments.
- Exporting/importing a survey does not export/import the attached uploaded files. However, the settings for attachments will be maintained, as well as the relevance equations.
Image attachment
You can add images to HTML emails. Click the Image button in the toolbar and set the URL of the image to its path in the public directory of your LimeSurvey site, for example the images folder of your survey.

FAQ
Who is the sender of the emails?
The Administrator and Administrator email address in the general settings of the survey. They appear in From when you send invitations and reminders. With the email method LimeSurvey Cloud, the emails come from noreply@limesurvey.org, and the administrator email address is used as the reply address. See Emails sent with the LimeSurvey Cloud method.
Can I use HTML in the templates?
Yes, when Use HTML format for participant emails is on in the participant settings, which is the default. Click the </> button in the toolbar to edit the HTML source.
Can the emails be in several languages?
Yes. Each survey language has its own tab with its own templates. Participants get the email in the language set in their Language field in the participant list.
A confirmation or notification email did not go out. Where do I see it?
Click Failed email notifications in the survey menu on the left. It lists the confirmation and admin notification emails that could not be sent after a response. See Failed email notifications.