You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decouple Event::emailOutputTo from file system operations (such as file_get_contents in Event::emailOutput)
Original request
The cron seems to run ok, but the emailOutput not being sent upon troubleshooting i find the cron throws an error that the output log file does not exists, yet i have set the log file as follows
$schedule->call(function() {
echo "Wisdom at it caused\n";
echo date("G:i a")."\n";
})->cron('* * * * *')
->sendOutputTo('/var/www/html/test/schedules.log')
->emailOutputTo('[email protected]');
The text was updated successfully, but these errors were encountered:
Decouple
Event::emailOutputTo
from file system operations (such asfile_get_contents
inEvent::emailOutput
)Original request
The cron seems to run ok, but the emailOutput not being sent upon troubleshooting i find the cron throws an error that the output log file does not exists, yet i have set the log file as follows
$schedule->call(function() {
echo "Wisdom at it caused\n";
echo date("G:i a")."\n";
})->cron('* * * * *')
->sendOutputTo('/var/www/html/test/schedules.log')
->emailOutputTo('[email protected]');
The text was updated successfully, but these errors were encountered: