mailto

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ali
    Corporal

    • Jul 2005
    • 17

    mailto

    Hi,

    Anybody knows to use mailto in PHP with the following parameters:

    $to, $subject, $body, $headers

    and put in php code like

    <?php

    mailto .....

    ?>

    Help. Thanks.
  • Pablo
    Moderator

    • May 2005
    • 507

    #2
    See related topic:

    Discussion and help related to designing and implementing forms in the BlueVoda Website Builder.
    Forum Moderator
    BlueVoda Spe******t

    Comment

    • jabird60
      Sergeant First Class

      • Feb 2006
      • 57

      #3
      Re: mailto

      yes i do and here is the script you need

      <HTML>
      <HEAD>
      <TITLE>Your Registration Form Has Been Sent</TITLE>
      </HEAD>
      <BODY>
      <H2>What you want peple to see when they click submit<H2>

      <?PHP
      $email = $HTTP_POST_VARS[email];
      $mailto = "Put Voda Host Email Address Here ";
      $mailsubj = "What you want the subject to be here";
      $mailhead = "From: $email\";
      reset ($HTTP_POST_VARS);
      $mailbody = "Values submitted from web site form:\n";
      while (list ($key, $val) = each ($HTTP_POST_VARS))
      {
      $mailbody .= "$key : $val\n";
      }
      mail($mailto, $mailsubj, $mailbody, $mailhead);
      ?>
      </BODY>
      </HTML>
      just copy this into notpad and save it a "What you want".php

      if you need any more help just post agan
      correct the words in red

      Comment

      Working...
      X