If condition verified then send mail

maxtemp

New Member
Hi everybody
I'm trying to build a scheduled task with Fabrik, were if the Condition box is true it should send an email
the php script checks if a selected file is older then 216000 second as you can see

<?php
$path = "mypath/myfile.csv";
$file = basename($path); // $file is set to "myfile.csv"
$datetime1 = filemtime($file);
$datetime2 = strtotime("now");
$secs = $datetime2 - $datetime1;// == return sec in difference
if($secs >=216000)
?>

But unfortunately nothing happens
Please help
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top