Welcome to the LimeSurvey Community Forum

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

Question text piping in email template

  • vnunzi
  • vnunzi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 months 4 weeks ago - 4 months 4 weeks ago #252680 by vnunzi
Hi everyone,

I am currently using LimeSurey in order to send personnalized emails (using both email templates and expression manager).
I was looking for a way to have multiple versions of my email, which I could send at once using the participants table attributes.
The simplest way I found to store those versions (which contain HTML code) is to code them as questions in the survey, and pipe them in the template using the expression manager.

As a result, my email template looks something like this:

Code:
{if(TOKEN:ATTRIBUTE_1 == "version1", version1.question, "")}
{if(TOKEN:ATTRIBUTE_1 == "version2", version2.question, "")}
{if(TOKEN:ATTRIBUTE_1 == "version3", version3.question, "")}
...


It seemed to work very well at first, but then it started sending blank emails (even though I had not changed anything in my code).
I struggled to find an answer, and then I noticed something: if I preview my survey (with my the versions of my email as questions) just before sending my emails, they have content again. But if I come back the next day and start sending emails without previewing my questions first, everything is empty again.

Here's my question: do I need to preview the HTML I am piping in order to "reactivate" some ressources? I don't really know how else to put it, but does piping in LimeSurvey only works if the survey has been viewed in the last X hours? 

Thank you very much for you help.

Best,
Victor

PS: my access to LimeSurvey is provided by another compagny as part of a corporate plan, so I don't know what is the version, and I have very limited access to admin settings.
Last edit: 4 months 4 weeks ago by vnunzi.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 months 4 weeks ago #252681 by Joffm
Replied by Joffm on topic Question text piping in email template
Hi,
better you send the lss export of the survey.

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • vnunzi
  • vnunzi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 months 4 weeks ago #252695 by vnunzi
Replied by vnunzi on topic Question text piping in email template
Hi,

Thank you for your quick answer.
How should I do that? I mean, what would be the code to include a .lss file in the email body?

Best,
Victor

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 months 4 weeks ago #252700 by DenisChenu
Replied by DenisChenu on topic Question text piping in email template
Since it work since years like that, we can not look if there are issue in your LimeSurvey or in your survey.

Just export the lss and send it here.

If needed : create a simple sample lss with only this system and test.

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.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose