504 Gateway Time-out The server didn't respond in time.
$result = $pdo->query("SELECT * FROM table WHERE week= ".date('W')." ") $count = 1; while($row = $result->fetch(PDO::FETCH_ASSOC)) { if (!filter_var($row['Email'], FILTER_VALIDATE_EMAIL) === false) { $Fr_Email = $row['Email']; $title= "xxx - xxx"; $tete.= "From:XXX <xxx@xxx.com>\n"; $tete.= "X-Priority: 1 \n"; $tete.= "MIME-Version: 1.0"."\n"; $tete.= "Content-Transfer-Encoding: 8bit \n"; $tete.= "Content-type: text/html; charset=utf-8"."\n"; $corps= "Body"; mail($Fr_Email, $title, $corps, $tete); if ($count % 5 == 0) {sleep(5);} $count++; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)