Using the Events.php pages I have a bunch of actions that take place to compile Emails into Tables. So that when I just click a Tab of this Email table the List page Events code automatically pulls together Emails and stores them in their own table. The List page shows each of these emails as a separate record.
When I have reviewed them in View I can click a simple href link that calls for a script in the Include folder. Clicking the link then pulls the values from the Email table and compiles them into Emails and Sends them.
Then it Truncates that Email table.
I put those Send Email actions in a separate file because the query refuses to work inside the Events.php file.
NOW I want to eliminate my manual click to that Send Email "external" file in the Include folder.
What is the most foolproof way to add to my Events code actions so that, say, 15 seconds after the emails have been compiled in a Table, the Send Email file is called and executed without being manually clicked?
In other words for the List page the BEFORE EVENTS code executes a series of actions....NOW, before the closing } of this function I want to conclude by calling for the file to run that is represented by the php code snippet
<a href="include/14daylieracemails.php">Send out 14 Days Lierac Emails</a>
It is late here and my brain is running dry!
Thanks for any help!