Results 1 to 3 of 3

Thread: need your help in mailto
      
   

  1. #1
    tiger Guest

    Red face 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. #2
    mattski's Avatar
    mattski is offline First Sergeant
    Join Date
    Jan 2008
    Location
    Colorado
    Posts
    80

    Default 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" ;

  3. #3
    tiger Guest

    Talking Re: need your help in mailto

    thank you
    it is working

    thank you

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49