我如何在相关日期自动发送邮件警报php或jquery的例子


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作业的教程->http://www.thesitewizard.com/general/set-cron-job.shtml