Results 1 to 3 of 3

Thread: Sending forum to multiple emails
      
   

  1. #1
    bobby317 is offline Corporal
    Join Date
    Feb 2008
    Posts
    12

    Default 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. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default 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

  3. #3
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


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