[英]how do i send mail alert on perticular date automatically php or jquery with example?
我正在嘗試開發門戶網站,因為我必須向客戶端發送后續消息。我必須在該日期發送存儲在數據庫中的警報郵件。 當日期出來時,郵件將在該特定日期自動發送。
<div class="col-xs-6">
<div class="box">
<table id="example2" class="table table-bordered table-hover">
<thead>
<tr>
<th>date</th>
<th>Reason</th>
</tr>
</thead>
<tbody>
<?php
$reasons = new reasons();
$cont = "cust_id = '" . $_GET['id'] . "' ";
$mfetch = $reasons->select($reasons->table, '', $cont);
//print_r($cont);exit();
foreach ($mfetch as $row) {
?>
<tr>
<th><?php echo $row['date'] ?></th>
<th><?php echo $row['reason'] ?></th>
</tr>
<?php
}
?>
</tbody>
</table>
</div><!-- /.box -->
</div><!-- /.col -->
你可以使用Cron Job(計划任務)
教程創建cron job-> http://www.thesitewizard.com/general/set-cron-job.shtml
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.