Announcement

Collapse
No announcement yet.

need your help in mailto

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

  • need your help in mailto

    i can not send to 2 e'mail



    <?PHP
    $mailto = "forexoman2008******.com";
    $mailto = "forexpresident******.com";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "call me";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form :\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);

  • #2
    Re: need your help in mailto

    You are declaring the variable $mailto twice. Try declaring it with the two addresses separated by a comma.

    $mailto = "forexoman2008******.com,forexpresident******.com" ;
    Mattski

    http://www.ScorpioFire.com


    Comment


    • #3
      Re: need your help in mailto

      thank you
      it is working

      thank you

      Comment

      Working...
      X