How to Remove PHP MailTo

104 41
    • 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 = "";

      $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); }


    • 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.


Leave A Reply

Your email address will not be published.