Hey there
We have a similar interface to Limesurvey. The only thing that we require right now is that when the person presses submit, the response should be emailed to a default email address(which can be changed from the code itself), like it happens in LS(Basic and detailed information).
What would be the best way to do it?
I have been unable to locate this code for LS, that is how it fetches all the data plus the email part.
Any suggestions/advice would greatly be appreciated
Thanks in advance
Sumeet Singh
From what I understand: He is building a survey tool similar to Limesurvey and he wants to understand the code on how Limesurvye treats emails, so he can implement something similar in his/her application.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Well explaining the whole concept here would take ages.
All I want to know is how does LS gets the questions and the responses submitted by the user and mails it to the specified email id? I am unable to find that code. If anyone could direct me the right way. Have been on it for quite some time now!
See file application/helpers/frontend_helper.php (in version 2.06 lts 160801). E.g. line # 592: "* Send a submit notification to the email address specified in the notifications tab in the survey settings".
Good luck!