Hi and good day to all. I have an issue I would like to know if there is anyway to solve.
The situation: I want invitations and reminders on active surveys to be sent out automatically. I've done this before with the great
sendMailCron Plugin
.
However I've had some issues with certificates on the server which ended up making it so I couldn't send mail at all. I've later resolved the issue and I'm able to send mail through the GUI and similar again.
It also works using the "php yourlimesurveydir/application/commands/console.php plugin cron --interval=1 sendMailCronSimulate=1" as mentioned on sendMailCron plugin documentation.
However my crontask is not able to run this automatically every hour.
My script that cron tries to run every hour:
#!/bin/sh
sudo php /var/www/limesurvey/application/commands/console.php plugin cron --interval=1 sendMailCronDebug=3
When I test this manually by running "cd / && run-parts --report /etc/cron.hourly" I get this error:
CException: Application runtime path "/var/www/limesurvey/var/www/limesurveytmp/var/www/limesurveyruntime" is not valid. Please make sure it is a directory writable by the Web server process. in /var/www/limesurvey/framework/base/CApplication.php:294
Stack trace:
#0 /var/www/limesurvey/framework/base/CComponent.php(152): CApplication->setRuntimePath('/var/www/limesu...')
#1 /var/www/limesurvey/framework/base/CModule.php(520): CComponent->__set('runtimePath', '/var/www/limesu...')
#2 /var/www/limesurvey/framework/base/CApplication.php(166): CModule->configure(Array)
#3 /var/www/limesurvey/application/core/ConsoleApplication.php(41): CApplication->__construct(Array)
#4 /var/www/limesurvey/framework/YiiBase.php(132): ConsoleApplication->__construct(Array)
#5 /var/www/limesurvey/application/commands/console.php(56): YiiBase::createApplication('ConsoleApplicat...', Array)
#6 {main}run-parts: /etc/cron.hourly/surveyReminder exited with return code 1
So now I'm not sure how to solve this.
Is there any way to send mail automatically with Limesurvey? I'm trying to use this plugin but have the problem above. Is there a solution to this problem, or is there an alternative method to do it?
Thank you for the help.