how do i add another recipient to my php script? - KingPin's Forum
KPsDenKPsDen ArmoryImage HostingLegendz text RPGIp DisplayIRCFlash Arcade
Forum
      |        
Register
         Nice models and free models, new site! (Posted By:3d4ya - Replies:0 - Views:1)      « »     Giving away my account (Posted By:Headshot - Replies:0 - Views:3)      « »     we have cheap shoes,example :gucci sneaker,air force... (Posted By:jimei - Replies:0 - Views:9)      « »     we have cheap shoes,example :gucci sneaker,air force... (Posted By:jimei - Replies:0 - Views:10)      « »     we have cheap shoes,example :gucci sneaker,air force... (Posted By:jimei - Replies:0 - Views:9)      « »     we have cheap shoes,example :gucci sneaker,air force... (Posted By:jimei - Replies:0 - Views:11)      « »     Lol thx (Posted By:vohrtechs - Replies:16 - Views:163)      « »     Networking not working (Posted By:vohrtechs - Replies:2 - Views:28)      « »     [epic] post you pic thread [/epic] (Posted By:Bionuclear - Replies:263 - Views:6052)      « »     Problem/Network (Posted By:Jewells02 - Replies:0 - Views:16)      « »     
KingPin's Forum
 
K.P.s.N. Register vbBux / KPs Mall Bugs Blogs FAQ Search Today's Posts Mark Forums Read Donate
Go Back   KingPin's Forum > KP's Network Forum > RSS News
Reload this Page how do i add another recipient to my php script?
 


RSS News This is a discussion on how do i add another recipient to my php script? in the RSS News;
Description: <?php // get posted data into local variables $EmailFrom = "from@host.com "; $EmailTo = "To_me1@yahoo.com" ; $Subject = Trim(stripslashes($_POST['Subject'])); $Message ...

Reply
 
LinkBack Thread Tools
how do i add another recipient to my php script?
(#1 (permalink))
Old
meeee is Offline
Private
Points: 179, Level: 2 Points: 179, Level: 2 Points: 179, Level: 2
Activity: 0% Activity: 0% Activity: 0%
meeee is an unknown quantity at this point
 
meeee
Rupees: 158.20
Bank: 500.00
Total Rupees: 658.20
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Dec 2007
how do i add another recipient to my php script? - December 21st, 2007

<?php


// get posted data into local variables
$EmailFrom = "from@host.com ";
$EmailTo = "To_me1@yahoo.com" ;
$Subject = Trim(stripslashes($_POST['Subject']));
$Message = Trim(stripslashes($_POST['Message']));
$Email = Trim(stripslashes($_POST['Email']));
$IP = $_SERVER['REMOTE_ADDR'];



// prepare email body text
$Body = "";
$Body .= " ";
$Body .= $Message;
$Body .= "\n";
$Body .= " \n\nFrom $Email\n\n";
$Body .= "IP=$IP";

// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");

// redirect to success page
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=ok.html\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">";
}
?>

ok so far i have one email in the $EmailTo but how do i add another one ive tried seperating with a comma. and something with /r/n. any idea
ty
i would like to use the same script i have just how do i add another recipient?

 
Reply With Quote
Reply

Bookmarks

Tags
add, php, recipient, script

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Rupees Per Thread View: 1.00
Rupees Per Thread: 15.00
Rupees Per Post: 5.00
Forum Jump



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright 2004-2009 KPsN


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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81