Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Unique confirmation email

  • CCCCCC
  • CCCCCC's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #180969 by CCCCCC
Unique confirmation email was created by CCCCCC
Dear all,


Is it possible to send automatically each subject an unique email after a survey?


The subject completes the survey and should then get a mail from a list of different confirmation emails. I need this, because subjects should receive an individual code from me (from a list of unique codes), which are already created.


Best wishes
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 months ago #181002 by DenisChenu
Replied by DenisChenu on topic Unique confirmation email
You can use Expression Manager in cofirmation email. Then using value in the surey (for example an equation result).

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • CCCCCC
  • CCCCCC's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #181032 by CCCCCC
Replied by CCCCCC on topic Unique confirmation email
Are you sure that this is possible? How should look like the code?
There are more than 100 different codes (or pre-formulated mails), and every subject should get one individual via mail.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 months ago #181041 by DenisChenu
Replied by DenisChenu on topic Unique confirmation email
I‘m sure at 100% you can use Expression Manager on body of email on last version. For subject sure at 100% it was case before (didn't test on 3.0).

About the 100 different code : how do you manage it ? How you construct it ?

I already made complex report totally different for each user send via email … the i'm sure at 100%

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • CCCCCC
  • CCCCCC's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #181049 by CCCCCC
Replied by CCCCCC on topic Unique confirmation email
There is a list of links with the codes like:

1. www.example.com/QHDAOSZNDIHDMS
2. www.example.com/LDSJDFBAKSDNYLA
3. www.example.com/TZLSNAÖDIWPEHDN
4. www.example.com/OTPRJPPNYNXLAAA
..........
100. www.example.com/UFRSPPAANDIAKH

Each subject should receive one of the codes with the confirmation mail after the survey, respectively it would be good to send them individualized mails and they contain some explanations, too (but they are all already pre-formulated)
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 months ago #181053 by DenisChenu
Replied by DenisChenu on topic Unique confirmation email
And how do you manage this random string ? In survey or not ?

If not in survey : you can't not use LimeSurvey to this : use redirect url for example.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • CCCCCC
  • CCCCCC's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #181056 by CCCCCC
Replied by CCCCCC on topic Unique confirmation email
What do you mean with "manage"?
The links are totally independent from the survey. I have them already in a text document.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 months ago #181058 by Joffm
Replied by Joffm on topic Unique confirmation email
Best you send us a sample file *.lss.
As Denis said: Where do you store the links?

Either you have to store them as e.g. token attribute with each participant,
or if they are outside you can use an ajax call to retrieve one.

So, please create a small sample survey.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • CCCCCC
  • CCCCCC's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #181064 by CCCCCC
Replied by CCCCCC on topic Unique confirmation email
They would be stored outside. How can i take them into the confirmation mail? Are there any examples?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 months ago #181066 by Joffm
Replied by Joffm on topic Unique confirmation email
Hi,
your first problem is to get it "from outside".

In my opinion you have to use an ajax call calling a php script that reads the code from a file or out of a database.
something like:
Code:
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:scriptcomplete',function(){
  $.post('https://www.domain.de/test/getCode.php', function(data) {
                   $('#question{QID} input[type="text"]').val(data)
  });
        $('#question{QID}').hide();
});
</script>

The php script "getCode.php" has to retrieve the code; and make sure that it is unique.

You can pass a parameter to select a code depending on that parameter, e.g. {SAVEDID} - which is unique.
Code:
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:scriptcomplete',function(){
        $.post('https://www.domain.de/test/getCode.php' , { id: "{SAVEDID}"},function(data) {
                   $('#question{QID} input[type="text"]').val(data)
 
  });
        $('#question{QID}').hide();
});
</script>
The rest is easy. Use EM to insert the code in your mail.

But as long as you do not provide a sample it's difficult to help

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 months ago #181084 by DenisChenu
Replied by DenisChenu on topic Unique confirmation email

Joffm wrote: your first problem is to get it "from outside".

+1 :)

Personnaly : i think of token attribute usage : more easy to manage :)

manual.limesurvey.org/Survey_participant...ants_from_a_CSV_file

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose