JackGoa
Member
Hi, I'm starting a fresh thread on this, as this is a spin off from a different issue I received help with.
I've got some cron emails that go out once a day. The cron job runs, I get the notifications. It will only send to 3 or 4 emails on it's own though. I need to run them manually daily to get them to send out.
I don't have pre-filters on the list and I have set the access to public for 'view records', 'edit records', 'view list' and 'add records'.
I've gone over my conditions about 50 times by now to make sure there are no errors.
I have 10 of these setup to run 5 minutes apart, once a day. they basically go through a list of people and send them reminders based on what the previous reminder was they received and also the time at which they originally filled in the form on my site. Here is a sample from one of them:
I honestly do not know what else to do to troubleshoot this. My $timediff overlaps a bit as I also found that it won't send to people that are more than 2 or 3 days older for instance, it only sends to them if they're older than 4 days. The next condition will send to people > 4 && < 7 and so on.
I'm considering removing the condition checking at what stage they are in the follow up. that would be the '{ahsa_leads___followed_up_raw}' == 'no' part.
Any suggestions would obviously be greatly appreciated, I don't really know where else to ask?
I've got some cron emails that go out once a day. The cron job runs, I get the notifications. It will only send to 3 or 4 emails on it's own though. I need to run them manually daily to get them to send out.
I don't have pre-filters on the list and I have set the access to public for 'view records', 'edit records', 'view list' and 'add records'.
I've gone over my conditions about 50 times by now to make sure there are no errors.
I have 10 of these setup to run 5 minutes apart, once a day. they basically go through a list of people and send them reminders based on what the previous reminder was they received and also the time at which they originally filled in the form on my site. Here is a sample from one of them:
PHP:
$date1 =new DateTime();
$date2 =new DateTime('{ahsa_leads___date_time}');
$timediff = $date2->diff($date1)->format("%a");
return '{ahsa_leads___followed_up_raw}' == 'no' && '{ahsa_leads___form_returned_raw}' == 'no' && '{ahsa_leads___end_result_raw}' == 'pending' && ($timediff > 2 && $timediff < 5);
I honestly do not know what else to do to troubleshoot this. My $timediff overlaps a bit as I also found that it won't send to people that are more than 2 or 3 days older for instance, it only sends to them if they're older than 4 days. The next condition will send to people > 4 && < 7 and so on.
I'm considering removing the condition checking at what stage they are in the follow up. that would be the '{ahsa_leads___followed_up_raw}' == 'no' part.
Any suggestions would obviously be greatly appreciated, I don't really know where else to ask?