fife Posted February 28, 2011 Share Posted February 28, 2011 I have a simple tell a friend script that works fine for the moment. its a simple.... $email = $_POST['email']; { mail("$email","Request","Dear Member, \n\nbla bla bla bla bla\n\n\n\n"); } I have an issue now though. The form now needs to be able to send 5 separate emails to 5 different people. How would this be done or is this even possible with the code I have? $email1 = $_POST['email1']; $email2 = $_POST['email2']; Link to comment https://forums.phpfreaks.com/topic/229147-tell-a-friend-script/ Share on other sites More sharing options...
Muddy_Funster Posted February 28, 2011 Share Posted February 28, 2011 It's easy enough done with an array, but there are a few things you havn't told us, are you actualy going to be using 5 indipendant mail fields?, does it matter if the mail is sent out as a group mail, with each address visible to the others, or does it need to be addressed only to a single recipient? Link to comment https://forums.phpfreaks.com/topic/229147-tell-a-friend-script/#findComment-1180848 Share on other sites More sharing options...
fife Posted February 28, 2011 Author Share Posted February 28, 2011 yes each email will be populated with a different request so the emails need to be individual to each person sent to. Basically it is a script I need which allows one person to send out 5 emails at a time inviting people to join the site. Each email needs to be sent separately though because there is a unique 25 digit key within each one which I use to identify them when they click the link! Link to comment https://forums.phpfreaks.com/topic/229147-tell-a-friend-script/#findComment-1180868 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.