From 7a4b79a54e5502bb5dd984f9e2b444dd2b7deff3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 23 Apr 2022 18:21:37 -0600 Subject: [PATCH] Make the path more dynamic for the email queue service --- app/email_queue/resources/service/email_queue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/email_queue/resources/service/email_queue.php b/app/email_queue/resources/service/email_queue.php index c960e7321c..c84165d64a 100644 --- a/app/email_queue/resources/service/email_queue.php +++ b/app/email_queue/resources/service/email_queue.php @@ -147,7 +147,7 @@ //process the messages if (is_array($email_queue) && @sizeof($email_queue) != 0) { foreach($email_queue as $row) { - $command = "/usr/bin/php /var/www/fusionpbx/app/email_queue/resources/jobs/email_send.php "; + $command = exec('which php')." ".$document_root."/app/email_queue/resources/jobs/email_send.php "; $command .= "'action=send&email_queue_uuid=".$row["email_queue_uuid"]."&hostname=".$hostname."'"; if (isset($debug)) { //run process inline to see debug info