I have trouble with mails sent by cron, as 9/10 time, mail is sent when the destination user log on smile
What do you mean ?
i set mail_notify_send to 90s, but, is there a way to run cron externally ( with a php call, by exemple or with CLI) ?
Yes, the below lines will run the cron for you
$cron = new \CODOF\Cron\Cron();
if (!$cron->run($name)) {
echo 'Unable to run cron ' . $name . ' because another cron is already running';
}
You can get the name of fron admin -> system/cron
So, you can just write this in an external script and execute it from your crontab
>I have trouble with mails sent by cron, as 9/10 time, mail is sent when the destination user log on smile
What do you mean ?
i set mail_notify_send to 90s, but, is there a way to run cron externally ( with a php call, by exemple or with CLI) ?
Yes, the below lines will run the cron for you
```
$cron = new \CODOF\Cron\Cron();
if (!$cron->run($name)) {
echo 'Unable to run cron ' . $name . ' because another cron is already running';
}
```
You can get the name of fron admin -> system/cron
So, you can just write this in an external script and execute it from your crontab
edited Nov 21 '16 at 5:31 pm