Announcement

Collapse
No announcement yet.

mailto

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

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

  • #2
    See related topic:

    http://www.vodahost.com/vodatalk/showthread.php?t=933
    Forum Moderator
    BlueVoda Spe******t

    Comment


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