3 email addresses in action page

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

    • Aug 2007
    • 15

    3 email addresses in action page

    domain name www.soscleaningsolutions.com my name servers are not updated so it does not work yet.

    1.I had always have problems with my email, so this time I want be sure I am going to get them all, so I decided to use 3 differents email addresses. Can you tell me if this is the right way to do it, do I have to change the codes?

    <?PHP
    $mailto = "sosclean@niagara.com";"soscleanin@soscleaning solu tions.com";"stevegaitan********.com";
    $email = $HTTP_POST_VARS[email];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "contact web page submitted";
    $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);


    Thanks in advance

    Stv
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #2
    Re: 3 email addresses in action page

    Not correct. Make the first lines as follows:

    $mailto = "sosclean@niagara.com, soscleanin@soscleaning solutions.com, stevegaitan********.com";
    $email = $HTTP_POST_VARS[email];
    if ($email == "") {
    $email = "sosclean@niagara.com";
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment

    • stv
      Corporal

      • Aug 2007
      • 15

      #3
      Re: 3 email addresses in action page

      thanks so much you guys are awesome

      Comment

      Working...
      X