How to Remove PHP MailTo

104 8
    • 1). Log into your Web server. Click the file that is associated with the HTML page into which you inserted the PHP MailTo code.

    • 2). Find the <body> section of your page.

    • 3). Locate the section of the code that appears to be similar to this:

      <script language="php">

      $email = $HTTP_POST_VARS[email];

      $mailto = "me@mypage.com";

      $mailsubj = "Form submission";

      $mailhead = "From: $email\n";

      reset ($HTTP_POST_VARS);

      $mailbody = "Values submitted from web site form:\n";

      while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }

      if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }

      </script>

    • 4). Highlight this entire section of code with your cursor.

    • 5). Hold down the "Ctrl" key and press the "X" key to remove the code.

    • 6). Publish the page. It will no longer include the PHP MailTo code.

Source...

Leave A Reply

Your email address will not be published.