Thanks Jason, I've managed to get around the security issue by putting the file in a secured folder using .htaccess. The date error has now disappeared although I'm getting a few others but to be honest, I can live with it as long as the emails are being sent!
I do have another question though, regarding using dynamic data in the body of the email. I have the email trigger set to "before page load" since it's the cron job that's actually activating the emails, so there's no web form on the actual page. I have a recordset and the emails are being sent correctly to all recipients in the recordset. I have the subject line set to <?php echo $RecipArray[$RecipIndex]["ClientName"]; ?> and that shows the correct Client Name in the Subject line. However, I also want to include the Client Name in the body of the email but the body is controlled by a bespoke page, waue_emailtest_1.php. This page uses the same recordset and I've put the following at line 1:
I'm using the following to get the Client Name: <?php echo ($RecipArray[$RecipIndex]["[ClientName]"])?> but it doesn't work. I'm guessing I've missed something that ties the Universal Email behavior page and the template page together?