Hi All, How to auto generate mail if given deadline over. any idea please share with us. i have two date; <?php i want to generate mail before 5 days form specified deadline if i will write funtion like if($days<=5) then it will send many times mail in a days.. i need one alert mail Thanks Sam
This script will do something 5 days, 6 days, 7 days, etc before deadline. // The date format must be YYYY-MM-DD $date2 = "2008-12-25";//(Deadline date) $date2_i = strtotime($date2); $how_many = 5 * 24 * 3600;// 5 days in seconds $now = time(); if ($now < $date2_i - $how_many) {// if 5 (or more) days before deadline // do something here } PHP:
Its not working properly.. main thing there is some data in database.. data should also go through mail. so i am facing these kind of problem.. i know its possable.. plz give me some hints.. Thanx sam