Announcement

Collapse
No announcement yet.

Sending forum to multiple emails

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

  • Sending forum to multiple emails

    Hi i have an aplacation page on my site www.thewarriorselite.com/apply.html I need to send this to multiple emails and was wondering if that was possoble please let me no thanks

  • #2
    Re: Sending forum to multiple emails

    Just use the normal script available in the tutorial, and add more mail() functions

    ex.

    PHP Code:
    $mailto "youremail@yourdomain.com";
     
    $email $HTTP_POST_VARS['email'];
     if (
    $email == "") {
     
    $email $mailto;
     }
     
    $mailsubj "Type your mail subject here";
     
    $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);
     
    mail('someone@yoursite.com'$mailsubj$mailbody$mailhead);
     
    mail('someone******.com'$mailsubj$mailbody$mailhead);
     
    mail('someone******.com'$mailsubj$mailbody$mailhead);
     
    ?> 
    For each additional email you want to send add another

    PHP Code:
     mail('email@site.com'$mailsubj$mailbody$mailhead); 
    Hope that helps

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

    Comment


    • #3
      Re: Sending forum to multiple emails

      Or simply change only the first line:

      $mailto = "email_1@yourdomain.com, email_2@second_domain.com, email_3@third_domain.com";

      Please note that this way recievers will see all other addresses where the mail is sent. Use Watdaflip's code if you don't want the recievers to be able to see the other email addresses.
      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

      Working...
      X