How do I switch line 109 in system / nitro / core / cron.php
which is:
104 if (getNitroPersistence('CRON.Local.SendEmail')) {
105 $subject = 'NitroPack Local CRON job';
106 $message = 'Time of execution: ' . date('Y-m-d H:i:s', $now) . PHP_EOL . PHP_EOL;
107 $message .= 'Executed tasks: ' . PHP_EOL . implode(PHP_EOL, $tasks) . PHP_EOL . PHP_EOL;
108
109 sendNitroMail(getOpenCartSetting('config_email'), $subject, $message);
110 }
* To make the CRON job use the native PHP mail() function
Here is the original message from support regarding how they fixed it, i just don't know how to rewrite that line to make the fix:
original message:
"This is to let you know that we were able to debug the CRON issue and devise a fix.
For some reason the OpenCart Mail class is not working while it is ran from the CRON job (however, when it is used inline in SSH, it is working fine). We have made a workaround by editing the file /system/nitro/core/cron.php on line 109 - instead of the OpenCart Mail class, we made the CRON job use the native PHP mail() function which has been tested and it is working. You should be now receiving e-mail messages from the CRON job."
Who is online
Users browsing this forum: No registered users and 3 guests