I have set up a schedule email script using listmailpro. I need to schedule a email to be sent for each Monday of the month for the next couple of years. The example below shows what I am trying to achieve. How could I write a quick PHP script that will insert the schedules for me, changing the date for each insert?
INSERT INTO `lm_schedule` (`id`, `type`, `date`, `subject`, `message`, `htmessage`, `fattach`, `list`) VALUES
('', 'm', '2011-08-15', 'Test weekly email (!date2)', 'email text', 'email body', '', '1'),
('', 'm', '2011-08-22', 'Test weekly email (!date2)', 'email text', 'email body', '', '1'),
('', 'm', '2011-08-29', 'Test weekly email (!date2)', 'email text', 'email body', '', '1'),
('', 'm', '2011-09-05', 'Test weekly email (!date2)', 'email text', 'email body', '', '1');
Not tested but should give a rough idea: