Email settings
The email settings and the bounce settings are two tabs of the global settings. To open them, click Global settings (the gear icon) in the left sidebar, or click Configuration in the top bar and then Settings ⇒ Global. Then click the Email settings or the Bounce settings tab. Nothing changes until you click Save. You need the Settings & plugins permission.
Your survey site sends invitations, reminders, confirmations, registration emails and notifications by email. The Email settings tab sets how.
- Default site admin email: the email address of the site administrator. It is used for system messages and contact options, and Send test email sends to it.
- Administrator name: the name of the site administrator.
- Email method: how the emails are sent:
- PHP (default): the internal PHP mail function.
- SMTP: your SMTP server sends the emails. Use it when your survey site doesn't run on your mail server. Fill in the SMTP fields below.
- Sendmail: the Sendmail program of your server.
- qmail: the qmail program of your server.
- Plugin: an email plugin sends the emails. Choose it under Email plugin.
- LimeSurvey Cloud (default): the LimeSurvey Cloud mail servers send your emails. There is nothing else to set up.
- SMTP: your own mail server sends the emails. Fill in the SMTP fields below.
- Plugin: an email plugin sends the emails. Choose it under Email plugin.
- SMTP host: the name of your SMTP server. If it doesn't use the standard port 25, add the port after a colon, for example
smtp.example.com:587orsmtp.gmail.com:465. - SMTP username: the user name, if your SMTP server needs a login. It is often the email address. Otherwise leave it empty.
- SMTP password: the password, if your SMTP server needs a login. Otherwise leave it empty.
- SMTP encryption: Off, SSL/TLS or StartTLS, as your email provider says.
- SMTP debug mode: how much information you get about the connection to the SMTP server:
- Off (default).
- On errors: a detailed connection log and error message if an error occurs. Use it when sending through your SMTP server doesn't work.
- Always: the log is always shown, so you see how the SMTP server responds.
- Always with connection details: like Always, with the details of the connection.
- Email plugin: if you chose Plugin as the email method, choose the plugin here. Two email plugins come with LimeSurvey. If a plugin isn't in the list, activate it first under Configuration ⇒ Settings ⇒ Plugins.
- AzureOAuthSMTP: sends emails through Microsoft (Azure, Microsoft 365) with OAuth over SMTP.
- GoogleOAuthSMTP: sends emails through Google with OAuth over SMTP.
- Email batch size: how many invitations or reminders are sent in one batch (default: 50). If sending takes too long, the script can time out. Lower the number if you get timeouts or if your mail server limits the number of emails per minute. When more emails are waiting than fit in one batch, LimeSurvey sends one batch, shows the addresses it sent to and the message "There are more emails pending than could be sent in one batch.", and continues with the next batch. On the Free plan, invitations and reminders are always sent in batches of 10.
- Email sending rate: the number of seconds to wait until the next batch is sent automatically (default: 60).
- Send test email: click Send email to send a test email to the Default site admin email. The test uses the saved settings, so save your changes first.
Send emails through your own SMTP server
Ask your email provider or IT team for the details of the SMTP server. Then:
- Open Global settings ⇒ Email settings.
- Set Email method to SMTP.
- Fill in SMTP host, SMTP username, SMTP password and SMTP encryption.
- Click Save.
- Under Send test email, click Send email to check the connection.
Invitations and reminders are sent from the Administrator email address in the settings of each survey (its default comes from the Default survey settings). Use an address that your SMTP server may send from. Otherwise the server may reject the email with an error such as "553 5.7.1 Sender address rejected: not owned by user". If your mail server only accepts emails from known senders, ask your IT team to allow the IP address of your survey site.
Emails sent with the LimeSurvey Cloud method
- Sender address: the emails come from
noreply@limesurvey.orgwith the sender name of your survey. Your own address is set as the reply address, so replies reach you. To send from your own address, use SMTP. - Bounces: bounced emails go to LimeSurvey, not to you. To process bounces yourself, send with SMTP and set up the Bounce settings tab.
- Spam check: emails sent through the LimeSurvey Cloud mail servers are checked for spam. If emails are classified as spam, your site can no longer send through the LimeSurvey Cloud mail servers. Sending then fails with the message "You are currently banned from sending emails using the LimeSurvey email servers." Switch to SMTP and contact LimeSurvey support.
Rules for invitations and reminders on LimeSurvey Cloud
These rules apply to every email method:
- Each invitation and reminder must contain the link to the survey, for example the placeholder
{SURVEYURL}. Otherwise sending fails with "Your email must contain an invitation link to the survey." - On the Free and Basic plans, invitations and reminders may only contain links to your survey (and email links with
mailto:). Other links stop the email with "Using the FREE & BASIC plan only links to your survey are allowed." - On the Free plan, invitations and reminders are sent in batches of 10.
See Email templates.
Bounce settings
- Default site bounce email: the email address that bounced emails are sent to. For faster processing, use an address that only receives bounces.
- Server type: Off (default) turns bounce processing off. To process bounces for all surveys, choose IMAP or POP3: with IMAP the bounced emails stay on your mail server after they are read, with POP3 they don't. See Email bounce tracking system.
- Server type: LimeSurvey Cloud (default) means no bounce processing on your site. To process bounces for all surveys, send with SMTP and choose IMAP or POP3: with IMAP the bounced emails stay on your mail server after they are read, with POP3 they don't. See Email bounce tracking system.
- Server name & port: the name of the IMAP or POP3 server and, if needed, the port after a colon, for example
imap.gmail.com:993. The port is only needed if the server uses a non-standard port. - User name: the user name of the IMAP or POP3 account.
- Password: the password of the IMAP or POP3 account.
- Encryption type: Off, SSL/TLS or StartTLS.
FAQ
Microsoft 365 rejects my SMTP user name and password. Why?
Microsoft 365 no longer accepts a user name and password for SMTP. It needs OAuth. Set Email method to Plugin and use the AzureOAuthSMTP plugin, or ask your IT team.
Which address do emails come from with the LimeSurvey Cloud method?
From noreply@limesurvey.org, with your address as the reply address, so replies reach you. To send from your own address, use SMTP.
Do I see bounced emails?
Only with your own SMTP server: then bounces come back to your mailbox, and you can process them with the Bounce settings. With the LimeSurvey Cloud method, bounces go to LimeSurvey. See Email bounce tracking system.