View Issue Details

IDProjectCategoryView StatusLast Update
15352Bug reports[All Projects] Survey participants (Tokens)public2019-10-09 11:35
Reporterluberm Assigned To 
Status newResolutionopen 
Product Version3.18.0 
Target VersionFixed in Version 
Summary15352: LimeSurvey doesn't set X-surveyid, X-tokenid, X-did headers for bounce tracking on my LS local instance

When sending survey invitations, LimeSurvey doesn't appear to include X-survey* headers in the emails.

Comparison between my local instance:
X-Mailer: PHPMailer 6.0.7 (
X-Surveymailer: surveys Emailer (
MIME-Version: 1.0

And a free instance:
X-Mailer: PHPMailer 6.0.7 (
X-surveyid: 12345
X-tokenid: Oumfrugza0Ll5as
X-did: 151151
X-Surveymailer: LimeSurvey Professional - Your online survey service Emailer
MIME-Version: 1.0

since both are on 3.18.0 it might be possible this is a database issue? I'm using Postgresql 10.

Steps To Reproduce

Create a new survey, send invitations, look at the headers.

TagsNo tags attached.
Complete LimeSurvey version number (& build)3.18.0
I will donate to the project if issue is resolvedNo
Database & DB-VersionPostgres 10
Server OS (if known)Linux
Webserver software & version (if known)nginx
PHP Version7.3




2019-10-09 10:42

developer   ~53958

Plugins ?



2019-10-09 10:48

reporter   ~53959

No plugins used. All vanilla.



2019-10-09 11:14

reporter   ~53960

Alright, while playing a little bit more with it, I figured out, that this appears to only happen when participants register.

So, when sending invitations and reminders through the admin panel, the token and survey-id get properly included in the headers.

So this issue appears to only happen at registration. At least we can rule out my smtp server mangling headers.

Anything that can be done about this?



2019-10-09 11:17

developer   ~53961

I think it's already fixed in 4.0 …

But the issue is «Survey register didn't set header for bounce tracking»



2019-10-09 11:35

reporter   ~53962

DenisChenu: right.

I fixed it locally for now, by adding:

$customheaders = array('1' => "X-surveyid: ".$iSurveyId, '2' => "X-tokenid: ".$sToken);

and modyfing SendEmailMessage to include $customheaders as additional parameter.

I'll add a PR.

Issue History

Date Modified Username Field Change
2019-10-02 09:39 luberm New Issue
2019-10-09 10:42 DenisChenu Note Added: 53958
2019-10-09 10:48 luberm Note Added: 53959
2019-10-09 11:14 luberm Note Added: 53960
2019-10-09 11:17 DenisChenu Note Added: 53961
2019-10-09 11:35 luberm Note Added: 53962