<legend id='gj4Lv'><style id='gj4Lv'><dir id='gj4Lv'><q id='gj4Lv'></q></dir></style></legend>
      <tfoot id='gj4Lv'></tfoot>

      <small id='gj4Lv'></small><noframes id='gj4Lv'>

        <bdo id='gj4Lv'></bdo><ul id='gj4Lv'></ul>

      <i id='gj4Lv'><tr id='gj4Lv'><dt id='gj4Lv'><q id='gj4Lv'><span id='gj4Lv'><b id='gj4Lv'><form id='gj4Lv'><ins id='gj4Lv'></ins><ul id='gj4Lv'></ul><sub id='gj4Lv'></sub></form><legend id='gj4Lv'></legend><bdo id='gj4Lv'><pre id='gj4Lv'><center id='gj4Lv'></center></pre></bdo></b><th id='gj4Lv'></th></span></q></dt></tr></i><div id='gj4Lv'><tfoot id='gj4Lv'></tfoot><dl id='gj4Lv'><fieldset id='gj4Lv'></fieldset></dl></div>

        如何在访问页面时发送电子邮件通知?

        How to send an email notification when a page is visited?(如何在访问页面时发送电子邮件通知?)
          <bdo id='ngzIw'></bdo><ul id='ngzIw'></ul>

              1. <small id='ngzIw'></small><noframes id='ngzIw'>

              2. <legend id='ngzIw'><style id='ngzIw'><dir id='ngzIw'><q id='ngzIw'></q></dir></style></legend>

                  <tfoot id='ngzIw'></tfoot>
                  <i id='ngzIw'><tr id='ngzIw'><dt id='ngzIw'><q id='ngzIw'><span id='ngzIw'><b id='ngzIw'><form id='ngzIw'><ins id='ngzIw'></ins><ul id='ngzIw'></ul><sub id='ngzIw'></sub></form><legend id='ngzIw'></legend><bdo id='ngzIw'><pre id='ngzIw'><center id='ngzIw'></center></pre></bdo></b><th id='ngzIw'></th></span></q></dt></tr></i><div id='ngzIw'><tfoot id='ngzIw'></tfoot><dl id='ngzIw'><fieldset id='ngzIw'></fieldset></dl></div>

                    <tbody id='ngzIw'></tbody>
                  本文介绍了如何在访问页面时发送电子邮件通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果访问某个页面,是否可以发送电子邮件通知?
                  (触发一封电子邮件,说该页面已被查看)

                  Is there a way to send an email notification if a certain page is visited?
                  (Triggers an email saying the page was viewed)

                  即.用户来到这个页面:thank-you.php
                  页面加载后,电子邮件会自动发送给网站管理员.
                  然后,在发送此电子邮件触发器后,用户会立即被重定向到另一个页面.

                  Ie. User comes to this page: thank-you.php
                  And email is automatically sent to the admin of the website upon page load.
                  Then the user gets redirected to another page right after this email trigger as been sent.

                  编辑---我需要检查用户是否来自特定的域名或 URL.
                  这是为了避免漏洞利用或其他杂项.提交技巧.

                  有什么建议吗?

                  推荐答案

                  尝试:

                  <?php
                  // The message
                  $message = "Line 1
                  Line 2
                  Line 3";
                  
                  // In case any of our lines are larger than 70 characters, we should use wordwrap()
                  $message = wordwrap($message, 70);
                  
                  // Send
                  mail('admin@example.com', 'My Subject', $message);
                  
                  // Redirect
                  header('Location: anotherpage.php');
                  ?>
                  

                  这篇关于如何在访问页面时发送电子邮件通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  <legend id='HG2Zg'><style id='HG2Zg'><dir id='HG2Zg'><q id='HG2Zg'></q></dir></style></legend><tfoot id='HG2Zg'></tfoot>
                  1. <small id='HG2Zg'></small><noframes id='HG2Zg'>

                      <tbody id='HG2Zg'></tbody>
                    • <bdo id='HG2Zg'></bdo><ul id='HG2Zg'></ul>

                      <i id='HG2Zg'><tr id='HG2Zg'><dt id='HG2Zg'><q id='HG2Zg'><span id='HG2Zg'><b id='HG2Zg'><form id='HG2Zg'><ins id='HG2Zg'></ins><ul id='HG2Zg'></ul><sub id='HG2Zg'></sub></form><legend id='HG2Zg'></legend><bdo id='HG2Zg'><pre id='HG2Zg'><center id='HG2Zg'></center></pre></bdo></b><th id='HG2Zg'></th></span></q></dt></tr></i><div id='HG2Zg'><tfoot id='HG2Zg'></tfoot><dl id='HG2Zg'><fieldset id='HG2Zg'></fieldset></dl></div>