After replying to the Imperial CMS message board, an email will be sent to notify the customer.

WBOY
Release: 2016-07-25 08:44:59
Original
1017 people have browsed it
  • Copy code

    ------------------------------------------------- -------------------------------------------------- ------------------
    Modification 2:
    e/admin/tool/gbook.php Add a line:

    1. include("../../class/SendEmail.inc.php");
    Copy code

    30 lines of code
    -------------------------------------------------- --------

    1. elseif($enews=="ReGbook")
    2. {
    3. $lyid=$_POST['lyid'];
    4. $bid=$_POST['bid'];
    5. $retext=$_POST['retext '];
    6. ReGbook($lyid,$retext,$bid,$logininid,$loginin);
    7. }
    Copy code

    ------------------------------------------------- ----------
    Modify to:
    -------------------------------------------------- --------

    1. elseif($enews=="ReGbook")
    2. {
    3. $lyid=$_POST['lyid'];
    4. $bid=$_POST['bid'];
    5. $retext=$_POST['retext '];
    6. $email=$_POST['email'];
    7. $lytext=$_POST['lytext'];
    8. $checked=(int)$_POST['checked'];
    9. if($checked)// Send
    10. {
    11. EcmsToSendMail($email,$lytext,$retext);
    12. }
    13. ReGbook($lyid,$retext,$bid,$logininid,$loginin);
    14. }
    Copy code

    The above is the entire content of this article, I hope you all like it.

  • Instructions: Modification 1: e/admin/tool/ReGook.php /*Reply Form*/

    Add code at line 43
    -------------------------------------------------- ----------------------------------------
    Copy the code The code is as follows:
    /*Get the user’s EMIAL address*/
    /*Get user message information*/

    -------------------------------------------------- ---------------------------------------------

    Line 67 adds form selections

    ------------------------------------------------- -------------------------------------------------- ---------------

    Notify book friends:
  • < input name="checked[]" type="checkbox" id="checked[]" value="" title="Send Emial notification to book friends" style="background:#99C4E3">
  • Book friend Email:
  • CMS,EMAIL


    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template