Unique confirmation email

More
1 month 4 weeks ago #180969 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

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 month 4 weeks ago #181002 by DenisChenu
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks 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.

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #181041 by DenisChenu
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks 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)

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #181053 by DenisChenu
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks 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.

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks 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

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks 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?

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks 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:
<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.
<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

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #181084 by DenisChenu

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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!