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
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
Just use the normal script available in the tutorial, and add more mail() functions
ex.
For each additional email you want to send add anotherPHP 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);
?>
Hope that helpsPHP Code:mail('email@site.com', $mailsubj, $mailbody, $mailhead);
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
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!
There are currently 1 users browsing this thread. (0 members and 1 guests)