i have following php code
if(mail($ToEmail, $Subject, $Content, $Headers) == false) {
echo "Error While Sending Email to : ".$ToEmail;
}else{
echo "Email Send Successfully to: ".$ToEmail; ;
}
i call this php code from jquery like this
var uemail="[email protected],[email protected],[email protected]";
uemail = uemail.split(',');
var interval;
var counter = 0;
var check = function() {
if(counter < uemail.length) {
// Send email post
counter++;
} else {
clearInterval(interval);
}
};
interval = setInterval(check,10000);
after 2nd time execution its shows 302 Moved Temporarily 15ms in firebug and user loogoff
Thanks