P
Peter
Hello All,
I'm a newbie and busy with a mailform.
This mailform sent autoresponse mail.
My question is if it possible to sent the autoresponse mail one or two days later after receiving the mail.
I think it has to be change in this piece of code ?
$offset = @_;
$offset=$offset*86400;
($sec, $min, $hour, $dayofmonth, $mon, $year, $weekday, $dayofyear, $IsDST) = localtime(time + $offset);
$year = $year + 1900;
@months = ("JA", "FB", "MR", "AP", "MY", "JN", "JL", "AG", "SP", "Oc", "NV", "DE");
$monthname = $months[$mon];
@monthsnum = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12");
$monthnamenum = $monthsnum[$mon];
@monthsactual = ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
$monthnameactual = $monthsactual[$mon];
@days = ("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday");
$dayname = $days[$weekday-1];
${'monthname'} = "$monthname";
${'monthnamenum'} = "$monthnamenum";
${'dayofmonth'} = "$dayofmonth";
if ($hour > 12){
$hourplus=$hour;
$newhour = ($hourplus-12);
$nightday = "PM";
}else{
$newhour=$hour;
$nightday = "AM";
}
if ($min <= 9){
$newmin = "0$min";
}else{
$newmin = "$min";
}
${'hour'}=$newhour;
I'm a newbie and busy with a mailform.
This mailform sent autoresponse mail.
My question is if it possible to sent the autoresponse mail one or two days later after receiving the mail.
I think it has to be change in this piece of code ?
$offset = @_;
$offset=$offset*86400;
($sec, $min, $hour, $dayofmonth, $mon, $year, $weekday, $dayofyear, $IsDST) = localtime(time + $offset);
$year = $year + 1900;
@months = ("JA", "FB", "MR", "AP", "MY", "JN", "JL", "AG", "SP", "Oc", "NV", "DE");
$monthname = $months[$mon];
@monthsnum = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12");
$monthnamenum = $monthsnum[$mon];
@monthsactual = ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
$monthnameactual = $monthsactual[$mon];
@days = ("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday");
$dayname = $days[$weekday-1];
${'monthname'} = "$monthname";
${'monthnamenum'} = "$monthnamenum";
${'dayofmonth'} = "$dayofmonth";
if ($hour > 12){
$hourplus=$hour;
$newhour = ($hourplus-12);
$nightday = "PM";
}else{
$newhour=$hour;
$nightday = "AM";
}
if ($min <= 9){
$newmin = "0$min";
}else{
$newmin = "$min";
}
${'hour'}=$newhour;