Automatically send email invitations


Plus 19% VAT
Delivery Time: keine Lieferzeit (z.B. Download)

Script for automatically sending Limesurvey email invitations using a cronjob. Allows setting email batch sizes.

SKU: N/A Category:

When running lots of surveys, terminating and sending email invitations can cause quite some work. To make your life easier, we are offering this Limesurvey cronjob script for sending email invitations. It helps you to fully automate the process of sending survey invitations.

The script will send invitations to all participants with a valid token and email address. You can also set this Limesurvey cronjob script to automatically generate tokens before sending email invitations.
The tool sends invitation emails only for those active surveys the plugin is activated for. Of course, the invitation email is only sent once and only to those participants who have not finished the survey yet. Furthermore, it takes into account the survey’s start date (if set). The “valid from” and “valid until” dates are also checked for every participant.
Since version 2.11 of the tool you can set an invitation start date.

Using this Limesurvey cronjob script will reduce the risk of your Limesurvey invitation emails being treated as spam. You can not only define how often the script is called. But you can also define how many emails should will be sent at every call by adjusting the batch size setting at survey level.

Installation of the Limesurvey cronjob script for sending email invitations

  • Firstly, download the plugin as ZIP file after payment. 
  • Limesurvey 3.x: Unzip all files. Then copy the “Inviter” folder to the Limesurvey “plugins” directory.
  • Limesurvey 5.x: Just upload the ZIP file at the plugin manager to install the plugin.
  • Activate the plugin at the Limesurvey plugin manager.
  • At any survey you can now activate the feature at the survey’s plugin settings.
  • Finally, set up the cronjob to automatically call the script every X minutes, hours or days. The script processes all surveys for which you activated the plugin.
    Depending on the way your provider is running cronjobs, try one of these commands:

    • php application/commands/console.php plugin –target=Inviter
    • php application/commands/console.php plugin index –target=Inviter
    • /usr/bin/php application/commands/console.php plugin –target=Inviter
  • The cronjob should be executed at least once a day. Cron tab setting for running it every night at 1 am: 0 1 * * * 

More information

Product Features

Limesurvey version

v3.x to 6.x, v3.x, v4.x, v5.x, v2.50 to v2.73.1, v2.05/2.06/2.6 LTS, v2.00

Recent updates:

2024-06-03 (Tested Limesurvey version 6.5.9):

  • 2.20.2 (2024-06-03) Fix: Error strtotime(null)
  • 2.20.1 (2024-05-17) Fix: Removed option query in multi survey mode
  • 2.20.0 (2024-05-17) New feature: Added single mode by using the option flag
  • 2.19.0 (2024-02-06) New feature: Added plugin event inviterOnCustomHeaders to manipulate the customHeaders array
  • 2.18.0 (2024-01-30) New feature: Added deactivation to deactivate the inviter when survey gets deactivated
  • 2.17.0 (2024-01-11) New feature: Added onDecorateEmail event to change body before sending email (eg. header and footer)

2023-12-05 (Tested Limesurvey version 5.6.48):

  • 2.16.1 (2023-12-05) Fix: Wrong path settings for URLs

2023-11-30 (Tested Limesurvey version 5.6.46):

  • 2.16.0 (2023-11-16) New feature: Max emails per script call
  • 2.15.1 (2023-11-08) Fix: Adjust baseUrl when showScriptName is false
  • 2.15.0 (2023-10-05) Extended logging feature, added global counter for logging
  • 2.14.0 (2023-09-08) Fix: Take global time adjust settings into account
  • 2.13.0 (2023-08-15) Fix: Optimized support for multiple email addresses
  • 2.12.0 (2023-07-26) New feature: Added @@OPTINURL@@ and @@OPTOUTURL@@ for replacements

2023-06-12 (Tested Limesurvey version 5.6.23):

  • 2.11.2 (2023-06-08) Adjustments for maxBatchSize
  • 2.11.1 (2023-06-07) New feature: LS 6.x support
  • 2.11.0 (2023-05-23) New feature: Plugin event inviterOnFieldsArray to manipulate the fieldsArray for replacements
  • 2.10.1 (2023-05-10) Fix: Missing classes by LimeSurveys ClassFactory after Limesurvey update
  • 2.10.0 (2023-05-08) New feature: Setting inviterMinDate for setting invitation sending start date
  • 2.9.1 (2023-05-08) Fix: Path to html2text
  • 2.9.0 (2023-03-27) New feature: Plugin event inviterBeforeInvite, supports onSurvey action
  • 2.8.3 (2023-02-28) New feature: {SID} to the replacements array

2022-11-08 (Tested Limesurvey version 5.4.9):

  • 2.8.0: Added support for email attachments.

2022-10-26 (Tested Limesurvey version 5.4.8):

  • 2.7.2: Optimization for LS 5.x settings inheritance for HTML email setting
  • 2.7.1: Fixed issue with max batch size not being applied correctly

2022-09-30 (Tested Limesurvey version 5.3.4):

  • 2.7.0: New plugin events “reminderBeforeSendEmail” and “reminderEmailTexts” for easily extending plugin features
  • 2.6.0: Added advanced logging

2022-06-07 (Tested Limesurvey version 5.3.16):

  • 2.5.1 Added support for multiple email addresses
  • 2.5.0 Fixed token based placeholders
  • 2.4.1 Performance optimization

2021-12-20 (Tested Limesurvey version 5.2.x):

  • 2.4.0 Max batch size fix, show direct output on console

2021-12-10 (Tested Limesurvey version 5.2.x):

  • 2.3.2 Added additional information for plugin settings

2021-11-30 (Tested Limesurvey version 3.27):

  • 2.3.0 Send plain text email when `htmlemail` is off
  • 2.2.0 Added inviterAdjustDateTime function to take global setting into account
  • 2.1.0 Added codeception tests + plugin settings footer

2021-09-30 Release of script version 2.0 (Tested Limesurvey version 3.27):

  • New setting at survey level to define the maximum batch size or set the script to send all emails in one run.

2021-06-19 (Tested Limesurvey version 3.27):

  • Added Limesurvey 4.x and 5.x compatibility
  • New feature to add baseUrl automatically when  activating the plugin
  • New feature to start/stop script by cronjob
  • New feature to support Expression Manager syntax
  • Fix: Support @@SURVEYURL@@ placeholder within email texts
  • Fix: Check start and expiry date properly before sending emails
  • Fix: Do not send emails to participants without a token
  • New feature: Setting ignoreBatchMaxSize to ignore batch size set at global settings

2018-12-14 (Tested Limesurvey version 3.15.5+181115):

  • First release for Limesurvey 3.x


  • Fix for properly checking survey start and expiry date
  • Fix for correctly updating details at Central Participant Database (CPDB)


  • Include adjusted server setting for “invitation sent” timestamp


  • Added support for Limesurvey v2.50
  • Fixed optin/optout links within email texts


  • Added additional check to make sure each user has a valid token assigned


  • Improved batch size check to only send emails of a following survey if batch size was not reached