Before Moodle 2, the Questionnaire module was handy for this because it sent all the form data in the email. However, this cannot be used anymore with guests. Joseph's suggestion is to use LimeSurvey, but I find it to be a bit cumbersome and also I don't want many to many systems for my sites.
As a result, I created a patch for the Feedback module that will send the results of the feedback in the email. Only two files were edited:
- lib.php (patch attached)
- complete_guest.php (only one line edited - shown below)
Edit for complete_guest.php:
Line 256, Moodle 2.7.1, replace
feedback_send_email_anonym($cm, $feedback, $course, $userid); //Original
feedback_send_email_anonym($cm, $feedback, $course, $new_completed_id); //Edit
It works well for us, however, I would appreciate any feedback as well as some help with fine tuning it.
With the patch, every feedback submitted sends email to the "teacher" of the courses. I would like to add one additional setting in the initial settings of the feedback so the person setting it up can decide whether to have the submissions sent to the teacher in an email or keep the original functionality. Maybe something like
Include submission values in email (default no)
Once this is in, I can make the appropriate changes in the two files to honor the setting.
Any "feedback" would be appreciated (no pun intended... well, maybe some pun was intended)