View Issue Details

This bug affects 1 person(s).
 12
IDProjectCategoryView StatusLast Update
20096Bug reportsSurvey participants (Tokens)public2025-05-27 15:26
ReporterMazi Assigned Totibor.pacalat  
PrioritynoneSeverityblock 
Status closedResolutionfixed 
Product Version6.6.x 
Summary20096: Confirmation email is not sent if multiple participants/email addresses are used, also applies to admin notifications
Description

When adding a participant you can have multiple email addresses for the same participant separated by a comma. When sending invitations, an email is sent to each email address.
If sending the confirmation email is enabled at the participant settings and there are multiple email addresses for a participant, then NO confirmation email is sent at all. Probably the syntax check for a valid email fails.
This also applies to listing multiple, comma separated email addresses for sending the admin notification emails at the "Notification & data" settings.

Steps To Reproduce

Steps to reproduce

At an activated, closed survey add a new participant with multiple email addresses separated by comma, example:
email1@example.org,email2@example.org,email3@example.org
Add the same addresses at "Notification & Data" settings for the admin notifications
Send that participant an invitation email -> an email should be sent to each email address.
Make sure sending the confirmation email is enabled at the "Participant Settings"
Take the survey and submit it.

Expected result

The confirmation email should be sent to every email address.
The admin notification should be sent to every email address.

Actual result

No emails are sent at all.
If you create a participant with a single email address only, the confirmation gets sent.

TagsNo tags attached.
Bug heat12
Complete LimeSurvey version number (& build)6.13.1
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL/MariaDB
Server OS (if known)
Webserver software & version (if known)
PHP Version8.x

Users monitoring this issue

There are no users monitoring this issue.

Activities

tibor.pacalat

tibor.pacalat

2025-05-08 15:55

administrator   ~82611

@gabrieljenik please update the manual as well, since there is nothing in the manual about the fact that you can create participants with multiple email addresses.

DenisChenu

DenisChenu

2025-05-09 08:20

developer   ~82619

there is nothing in the manual about the fact that you can create participants with multiple email addresses.

I'm sure it was in previous Notification & data manual page .
https://web.archive.org/web/20240413062200/https://manual.limesurvey.org/Notifications_%26_data#Basic_and_Detailed_Admin_Notifications_Email "yourname@test.com; myname@test.com;hisname@test.com"

@Mazi : did you try with ; ? (it must work with both)

Mazi

Mazi

2025-05-09 08:54

updater   ~82621

@DenisChenu: When adding a new token, I think you HAVE to use comma (",") as a separator for multiple email addresses. Otherwise the syntax check will fail.
But you are right, for the admin notifications you can use a semicolon (";"). That actually works fine.

I suggest that we should support both separators, comma and semicolon at both fields.

DenisChenu

DenisChenu

2025-05-09 10:00

developer   ~82624

I suggest that we should support both separators, comma and semicolon at both fields.

+1

gabrieljenik

gabrieljenik

2025-05-15 21:17

manager   ~82682

https://github.com/LimeSurvey/LimeSurvey/pull/4282

DenisChenu

DenisChenu

2025-05-16 08:17

developer   ~82684

Move to LimeMailer::validateAddresses when possible, no ?

Where you already update code

And maybe add deprecated https://github.com/LimeSurvey/LimeSurvey/blob/a7aaf89092a36e98b045344730315144f425cec0/application/helpers/common_helper.php#L1172 ?

gabrieljenik

gabrieljenik

2025-05-23 23:28

manager   ~82755

I think this can be moved to ready to test (PR already approaved), right?

DenisChenu

DenisChenu

2025-05-26 08:36

developer   ~82756

Just update the comment please : https://github.com/LimeSurvey/LimeSurvey/pull/4282/files#r2098444068

guest

guest

2025-05-26 15:13

viewer   ~82761

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=38850

tibor.pacalat

tibor.pacalat

2025-05-26 15:16

administrator   ~82762

I tested and merged the PR, thought this was approved, since the tag "Approved" was on the PR :/
@gabrieljenik can you please make a small PR to update the comment as Denis proposed?
Also, update the manual please as well.

LimeBot

LimeBot

2025-05-27 14:11

administrator   ~82771

Fixed in Release 6.14.1+250527

gabrieljenik

gabrieljenik

2025-05-27 15:26

manager   ~82773

https://github.com/LimeSurvey/LimeSurvey/pull/4296

Related Changesets

LimeSurvey: master 17b35e0e

2025-05-26 15:13

Gabriel Jenik

Committer: GitHub


Details Diff
Fixed issue 20096: Confirmation email is not sent if multiple participants/email addresses are used, also applies to admin notifications (04282)

Co-authored-by: lapiudevgit <devgit@lapiu.biz>
Affected Issues
20096
mod - application/core/LimeMailer.php Diff File
mod - application/helpers/frontend_helper.php Diff File

Issue History

Date Modified Username Field Change
2025-05-08 11:48 Mazi New Issue
2025-05-08 15:54 tibor.pacalat Assigned To => gabrieljenik
2025-05-08 15:54 tibor.pacalat Status new => assigned
2025-05-08 15:55 tibor.pacalat Note Added: 82611
2025-05-08 15:55 tibor.pacalat Bug heat 0 => 2
2025-05-09 08:20 DenisChenu Note Added: 82619
2025-05-09 08:20 DenisChenu Bug heat 2 => 4
2025-05-09 08:54 Mazi Note Added: 82621
2025-05-09 08:54 Mazi Bug heat 4 => 6
2025-05-09 10:00 DenisChenu Note Added: 82624
2025-05-15 21:17 gabrieljenik Assigned To gabrieljenik => DenisChenu
2025-05-15 21:17 gabrieljenik Status assigned => ready for code review
2025-05-15 21:17 gabrieljenik Note Added: 82682
2025-05-15 21:17 gabrieljenik Bug heat 6 => 8
2025-05-16 08:17 DenisChenu Assigned To DenisChenu => gabrieljenik
2025-05-16 08:17 DenisChenu Status ready for code review => in code review
2025-05-16 08:17 DenisChenu Note Added: 82684
2025-05-23 23:28 gabrieljenik Note Added: 82755
2025-05-26 08:36 DenisChenu Assigned To gabrieljenik => tibor.pacalat
2025-05-26 08:36 DenisChenu Status in code review => ready for testing
2025-05-26 08:36 DenisChenu Note Added: 82756
2025-05-26 15:13 Changeset attached => LimeSurvey master 17b35e0e
2025-05-26 15:13 guest Note Added: 82761
2025-05-26 15:13 guest Bug heat 8 => 10
2025-05-26 15:16 tibor.pacalat Note Added: 82762
2025-05-26 15:16 tibor.pacalat Status ready for testing => resolved
2025-05-26 15:16 tibor.pacalat Resolution open => fixed
2025-05-27 14:11 LimeBot Note Added: 82771
2025-05-27 14:11 LimeBot Status resolved => closed
2025-05-27 14:11 LimeBot Bug heat 10 => 12
2025-05-27 15:26 gabrieljenik Note Added: 82773